Home
last modified time | relevance | path

Searched refs:AssertJson (Results 1 – 2 of 2) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonFormatterTest.cs58 AssertJson("{ }", formatter.Format(new ForeignMessage())); in DefaultValues_WhenOmitted()
59 AssertJson("{ }", formatter.Format(new TestAllTypes())); in DefaultValues_WhenOmitted()
60 AssertJson("{ }", formatter.Format(new TestMap())); in DefaultValues_WhenOmitted()
67 AssertJson("{ 'c': 0 }", formatter.Format(new ForeignMessage())); in DefaultValues_WhenIncluded()
79 AssertJson(expectedText, actualText); in EnumAllowAlias()
96 AssertJson(expectedText, actualText); in EnumAsInt()
154 AssertJson(expectedText, actualText); in AllSingleFields()
176 AssertJson("{ 'optionalInt32': 0, 'singularInt32': 0, 'singularInt64': '0' }", json); in WithFormatDefaultValues_DoesNotAffectProto3OptionalFields()
187 AssertJson("{ 'c': 0 }", json); in WithFormatDefaultValues_DoesNotAffectProto2Fields()
196 AssertJson("{ }", json); in WithFormatDefaultValues_DoesNotAffectOneofFields()
[all …]
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DJsonFormatterTest.cs58 AssertJson("{ }", formatter.Format(new ForeignMessage())); in DefaultValues_WhenOmitted()
59 AssertJson("{ }", formatter.Format(new TestAllTypes())); in DefaultValues_WhenOmitted()
60 AssertJson("{ }", formatter.Format(new TestMap())); in DefaultValues_WhenOmitted()
67 AssertJson("{ 'c': 0 }", formatter.Format(new ForeignMessage())); in DefaultValues_WhenIncluded()
79 AssertJson(expectedText, actualText); in EnumAllowAlias()
96 AssertJson(expectedText, actualText); in EnumAsInt()
154 AssertJson(expectedText, actualText); in AllSingleFields()
176 AssertJson("{ 'optionalInt32': 0, 'singularInt32': 0, 'singularInt64': '0' }", json); in WithFormatDefaultValues_DoesNotAffectProto3OptionalFields()
187 AssertJson("{ 'c': 0 }", json); in WithFormatDefaultValues_DoesNotAffectProto2Fields()
196 AssertJson("{ }", json); in WithFormatDefaultValues_DoesNotAffectOneofFields()
[all …]