Home
last modified time | relevance | path

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

/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DTimestampTest.cs45 AssertRoundtrip(new Timestamp { Seconds = -62135596800 }, utcMin); in FromAndToDateTime()
46 AssertRoundtrip(new Timestamp { Seconds = 253402300799, Nanos = 999999900 }, utcMax); in FromAndToDateTime()
47 AssertRoundtrip(new Timestamp(), new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)); in FromAndToDateTime()
48AssertRoundtrip(new Timestamp { Nanos = 1000000}, new DateTime(1970, 1, 1, 0, 0, 0, 1, DateTimeKin… in FromAndToDateTime()
49AssertRoundtrip(new Timestamp { Seconds = -1, Nanos = 999000000 }, new DateTime(1969, 12, 31, 23, … in FromAndToDateTime()
50AssertRoundtrip(new Timestamp { Seconds = 3600 }, new DateTime(1970, 1, 1, 1, 0, 0, DateTimeKind.U… in FromAndToDateTime()
51AssertRoundtrip(new Timestamp { Seconds = -3600 }, new DateTime(1969, 12, 31, 23, 0, 0, DateTimeKi… in FromAndToDateTime()
87 private static void AssertRoundtrip(Timestamp timestamp, DateTime dateTime) in AssertRoundtrip() method in Google.Protobuf.WellKnownTypes.TimestampTest
/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonParserTest.cs50 AssertRoundtrip(SampleMessages.CreateFullTestAllTypes()); in AllTypesRoundtrip()
56AssertRoundtrip(new TestMap { MapStringString = { { "with spaces", "bar" }, { "a", "b" } } }); in Maps()
57 AssertRoundtrip(new TestMap { MapInt32Int32 = { { 0, 1 }, { 2, 3 } } }); in Maps()
58 AssertRoundtrip(new TestMap { MapBoolBool = { { false, true }, { true, false } } }); in Maps()
85 AssertRoundtrip(new SourceContext { FileName = "foo.proto" }); in SourceContextRoundtrip()
103 AssertRoundtrip(message); in SingularWrappers_DefaultNonNullValues()
121 AssertRoundtrip(message); in SingularWrappers_NonDefaultValues()
188 AssertRoundtrip(message); in RepeatedWrappers()
230 private static void AssertRoundtrip<T>(T message) where T : IMessage<T>, new()