• Home
  • Raw
  • Download

Lines Matching refs:parsed

133             var parsed = JsonParser.Default.Parse<TestWellKnownTypes>(json);  in SingularWrappers_ExplicitNulls()
134 Assert.AreEqual(message, parsed); in SingularWrappers_ExplicitNulls()
150 IMessage parsed = (IMessage)Activator.CreateInstance(wrapperType); in Wrappers_Standalone()
152 JsonParser.Default.Merge(parsed, "null"); in Wrappers_Standalone()
153 Assert.AreEqual(expected, parsed); in Wrappers_Standalone()
155 JsonParser.Default.Merge(parsed, json); in Wrappers_Standalone()
157 Assert.AreEqual(expected, parsed); in Wrappers_Standalone()
173 var parsed = JsonParser.Default.Parse<BytesValue>(WrapInQuotes(data.ToBase64())); in BytesWrapper_Standalone()
175 Assert.AreEqual(expected, parsed); in BytesWrapper_Standalone()
239 var parsed = JsonParser.Default.Parse<T>(json);
240 Assert.AreEqual(clone, parsed);
253 var parsed = TestAllTypes.Parser.ParseJson(json); in StringToInt32_Valid()
254 Assert.AreEqual(expectedParsedValue, parsed.SingleInt32); in StringToInt32_Valid()
282 var parsed = TestAllTypes.Parser.ParseJson(json); in StringToUInt32_Valid()
283 Assert.AreEqual(expectedParsedValue, parsed.SingleUint32); in StringToUInt32_Valid()
305 var parsed = TestAllTypes.Parser.ParseJson(json); in StringToInt64_Valid()
306 Assert.AreEqual(expectedParsedValue, parsed.SingleInt64); in StringToInt64_Valid()
326 var parsed = TestAllTypes.Parser.ParseJson(json); in StringToUInt64_Valid()
327 Assert.AreEqual(expectedParsedValue, parsed.SingleUint64); in StringToUInt64_Valid()
362 var parsed = TestAllTypes.Parser.ParseJson(json); in StringToDouble_Valid()
363 Assert.AreEqual(expectedParsedValue, parsed.SingleDouble); in StringToDouble_Valid()
405 var parsed = TestAllTypes.Parser.ParseJson(json); in StringToFloat_Valid()
406 Assert.AreEqual(expectedParsedValue, parsed.SingleFloat); in StringToFloat_Valid()
437 var parsed = TestAllTypes.Parser.ParseJson(json); in NumberToInt32_Valid()
438 Assert.AreEqual(expectedParsedValue, parsed.SingleInt32); in NumberToInt32_Valid()
465 var parsed = TestAllTypes.Parser.ParseJson(json); in NumberToUInt32_Valid()
466 Assert.AreEqual(expectedParsedValue, parsed.SingleUint32); in NumberToUInt32_Valid()
490 var parsed = TestAllTypes.Parser.ParseJson(json); in NumberToInt64_Valid()
491 Assert.AreEqual(expectedParsedValue, parsed.SingleInt64); in NumberToInt64_Valid()
516 var parsed = TestAllTypes.Parser.ParseJson(json); in NumberToUInt64_Valid()
517 Assert.AreEqual(expectedParsedValue, parsed.SingleUint64); in NumberToUInt64_Valid()
549 var parsed = TestAllTypes.Parser.ParseJson(json); in NumberToDouble_Valid()
550 Assert.AreEqual(expectedParsedValue, parsed.SingleDouble); in NumberToDouble_Valid()
581 var parsed = TestAllTypes.Parser.ParseJson(json); in NumberToFloat_Valid()
582 Assert.AreEqual(expectedParsedValue, parsed.SingleFloat); in NumberToFloat_Valid()
645 var parsed = Timestamp.Parser.ParseJson(json); in Timestamp_Valid()
646 Assert.AreEqual(WrapInQuotes(expectedFormatted), parsed.ToString()); in Timestamp_Valid()
762 var parsed = Duration.Parser.ParseJson(json); in Duration_Valid()
763 Assert.AreEqual(WrapInQuotes(expectedFormatted), parsed.ToString()); in Duration_Valid()
808 var parsed = FieldMask.Parser.ParseJson(json); in FieldMask_Valid()
809 CollectionAssert.AreEqual(expectedPaths, parsed.Paths); in FieldMask_Valid()
927 var parsed = TestAllTypes.Parser.ParseJson(json); in EnumValid()
928 Assert.AreEqual(new TestAllTypes { SingleForeignEnum = expectedValue }, parsed); in EnumValid()
958 var parsed = TestAllTypesProto2.Parser.ParseJson(json); in Proto2_DefaultValuesPreserved()
959 Assert.False(parsed.HasFieldName10); in Proto2_DefaultValuesPreserved()
960 Assert.True(parsed.HasFieldName13); in Proto2_DefaultValuesPreserved()
961 Assert.AreEqual(0, parsed.FieldName13); in Proto2_DefaultValuesPreserved()