• Home
  • Raw
  • Download

Lines Matching refs:AssertJson

55             AssertJson("{ }", formatter.Format(new ForeignMessage()));  in DefaultValues_WhenOmitted()
56 AssertJson("{ }", formatter.Format(new TestAllTypes())); in DefaultValues_WhenOmitted()
57 AssertJson("{ }", formatter.Format(new TestMap())); in DefaultValues_WhenOmitted()
64 AssertJson("{ 'c': 0 }", formatter.Format(new ForeignMessage())); in DefaultValues_WhenIncluded()
122 AssertJson(expectedText, actualText); in AllSingleFields()
128 AssertJson("{ 'repeatedInt32': [ 1, 2, 3, 4, 5 ] }", in RepeatedField()
135 AssertJson("{ 'mapStringString': { 'with spaces': 'bar', 'a': 'b' } }", in MapField_StringString()
143 AssertJson("{ 'mapInt32Int32': { '0': 1, '2': 3 } }", in MapField_Int32Int32()
151 AssertJson("{ 'mapBoolBool': { 'false': true, 'true': false } }", in MapField_BoolBool()
164 AssertJson(expectedText, actualText); in DoubleRepresentations()
171 AssertJson("{ 'singleForeignEnum': 100 }", JsonFormatter.Default.Format(message)); in UnknownEnumValueNumeric_SingleField()
178AssertJson("{ 'repeatedForeignEnum': [ 'FOREIGN_BAZ', 100, 'FOREIGN_FOO' ] }", JsonFormatter.Defau… in UnknownEnumValueNumeric_RepeatedField()
185AssertJson("{ 'mapInt32Enum': { '1': 'MAP_ENUM_FOO', '2': 100, '3': 'MAP_ENUM_BAR' } }", JsonForma… in UnknownEnumValueNumeric_MapField()
192AssertJson("{ 'repeatedForeignEnum': [ 200, 100 ] }", JsonFormatter.Default.Format(message)); in UnknownEnumValue_RepeatedField_AllEntriesUnknown()
202AssertJson("{ 'singleString': '" + encoded + "' }", JsonFormatter.Default.Format(message)); in SimpleNonAscii()
209AssertJson("{ 'singleString': 'a\\ud801\\udc01b' }", JsonFormatter.Default.Format(message)); in SurrogatePairEscaping()
250 AssertJson(expectedJson, formatter.Format(message)); in Oneof()
252 AssertJson(expectedJson, formatter.Format(message)); in Oneof()
268 AssertJson(expectedJson, JsonFormatter.Default.Format(message)); in WrapperFormatting_Single()
294 AssertJson("{ 'plainString': 'p1', 'plainInt32': 2 }", formatter.Format(message)); in OutputIsInNumericFieldOrder_NoDefaults()
296AssertJson("{ 'plainString': 'plain', 'o2String': 'o2', 'plainInt32': 10, 'o1Int32': 5 }", formatt… in OutputIsInNumericFieldOrder_NoDefaults()
298AssertJson("{ 'plainString': 'plain', 'o1String': '', 'plainInt32': 10, 'o2Int32': 0 }", formatter… in OutputIsInNumericFieldOrder_NoDefaults()
306 AssertJson("{ 'plainString': '', 'plainInt32': 0 }", formatter.Format(message)); in OutputIsInNumericFieldOrder_WithDefaults()
308AssertJson("{ 'plainString': 'plain', 'o2String': 'o2', 'plainInt32': 10, 'o1Int32': 5 }", formatt… in OutputIsInNumericFieldOrder_WithDefaults()
310AssertJson("{ 'plainString': 'plain', 'o1String': '', 'plainInt32': 10, 'o2Int32': 0 }", formatter… in OutputIsInNumericFieldOrder_WithDefaults()
362AssertJson("{ 'timestampField': '1970-01-01T00:00:00Z' }", JsonFormatter.Default.Format(message)); in TimestampField()
408 AssertJson("{ 'durationField': '0s' }", JsonFormatter.Default.Format(message)); in DurationField()
426AssertJson("{ 'a': null, 'b': false, 'c': 10.5, 'd': 'text', 'e': [ 't1', 5 ], 'f': { 'nested': 'v… in StructSample()
454AssertJson("{ 'fieldMaskField': 'user.displayName,photo' }", JsonFormatter.Default.Format(message)… in FieldMaskField()
462 AssertJson("{ 'fileName': 'foo.proto' }", JsonFormatter.Default.Format(message)); in SourceContextStandalone()
471AssertJson("{ '@type': 'type.googleapis.com/google.protobuf.Timestamp', 'value': '1673-06-19T12:34… in AnyWellKnownType()
480AssertJson("{ '@type': 'type.googleapis.com/protobuf_unittest.TestAllTypes', 'singleInt32': 10, 's… in AnyMessageType()
489AssertJson("{ '@type': 'foo.bar/baz/protobuf_unittest.TestAllTypes', 'singleInt32': 10 }", formatt… in AnyMessageType_CustomPrefix()
502AssertJson("{ 'anyField': { '@type': 'type.googleapis.com/google.protobuf.Any', 'value': { '@type'… in AnyNested()
520 private static void AssertJson(string expectedJsonWithApostrophes, string actualJson) in AssertJson() method in Google.Protobuf.JsonFormatterTest