• Home
  • Raw
  • Download

Lines Matching refs:Default

95             var actualText = JsonFormatter.Default.Format(message);  in AllSingleFields()
129 … JsonFormatter.Default.Format(new TestAllTypes { RepeatedInt32 = { 1, 2, 3, 4, 5 } })); in RepeatedField()
136 …JsonFormatter.Default.Format(new TestMap { MapStringString = { { "with spaces", "bar" }, { "a", "b… in MapField_StringString()
144 … JsonFormatter.Default.Format(new TestMap { MapInt32Int32 = { { 0, 1 }, { 2, 3 } } })); in MapField_Int32Int32()
152 … JsonFormatter.Default.Format(new TestMap { MapBoolBool = { { false, true }, { true, false } } })); in MapField_BoolBool()
162 string actualText = JsonFormatter.Default.Format(message); in DoubleRepresentations()
171 AssertJson("{ 'singleForeignEnum': 100 }", JsonFormatter.Default.Format(message)); in UnknownEnumValueNumeric_SingleField()
178 …atedForeignEnum': [ 'FOREIGN_BAZ', 100, 'FOREIGN_FOO' ] }", JsonFormatter.Default.Format(message)); in UnknownEnumValueNumeric_RepeatedField()
185 … { '1': 'MAP_ENUM_FOO', '2': 100, '3': 'MAP_ENUM_BAR' } }", JsonFormatter.Default.Format(message)); in UnknownEnumValueNumeric_MapField()
192 … AssertJson("{ 'repeatedForeignEnum': [ 200, 100 ] }", JsonFormatter.Default.Format(message)); in UnknownEnumValue_RepeatedField_AllEntriesUnknown()
202 … AssertJson("{ 'singleString': '" + encoded + "' }", JsonFormatter.Default.Format(message)); in SimpleNonAscii()
209 … AssertJson("{ 'singleString': 'a\\ud801\\udc01b' }", JsonFormatter.Default.Format(message)); in SurrogatePairEscaping()
220 Assert.Throws<ArgumentException>(() => JsonFormatter.Default.Format(message)); in InvalidSurrogatePairsFail()
224 Assert.Throws<ArgumentException>(() => JsonFormatter.Default.Format(message)); in InvalidSurrogatePairsFail()
268 AssertJson(expectedJson, JsonFormatter.Default.Format(message)); in WrapperFormatting_Single()
274 Assert.AreEqual("\"\"", JsonFormatter.Default.Format(new StringValue())); in WrapperFormatting_Message()
275 Assert.AreEqual("0", JsonFormatter.Default.Format(new Int32Value())); in WrapperFormatting_Message()
355 Assert.Throws<InvalidOperationException>(() => JsonFormatter.Default.Format(timestamp)); in TimestampStandalone_NonNormalized()
362 … AssertJson("{ 'timestampField': '1970-01-01T00:00:00Z' }", JsonFormatter.Default.Format(message)); in TimestampField()
391 … var json = JsonFormatter.Default.Format(new Duration { Seconds = seconds, Nanos = nanoseconds }); in DurationStandalone()
401 Assert.Throws<InvalidOperationException>(() => JsonFormatter.Default.Format(duration)); in DurationStandalone_NonNormalized()
408 AssertJson("{ 'durationField': '0s' }", JsonFormatter.Default.Format(message)); in DurationField()
436 Assert.Throws<InvalidOperationException>(() => JsonFormatter.Default.Format(mask)); in FieldMaskInvalid()
454 …AssertJson("{ 'fieldMaskField': 'user.displayName,photo' }", JsonFormatter.Default.Format(message)… in FieldMaskField()
462 AssertJson("{ 'fileName': 'foo.proto' }", JsonFormatter.Default.Format(message)); in SourceContextStandalone()
512 Assert.Throws<InvalidOperationException>(() => JsonFormatter.Default.Format(any)); in AnyUnknownType()