|
|
|
@ -71,6 +71,8 @@ namespace Google.Protobuf.WellKnownTypes |
|
|
|
|
Uint64Field = 4 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
MessageParsingHelpers.AssertWritingMessage(message); |
|
|
|
|
|
|
|
|
|
MessageParsingHelpers.AssertRoundtrip(TestWellKnownTypes.Parser, message, parsed => |
|
|
|
|
{ |
|
|
|
|
Assert.AreEqual("x", parsed.StringField); |
|
|
|
@ -101,6 +103,8 @@ namespace Google.Protobuf.WellKnownTypes |
|
|
|
|
Uint64Field = 0 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
MessageParsingHelpers.AssertWritingMessage(message); |
|
|
|
|
|
|
|
|
|
MessageParsingHelpers.AssertRoundtrip(TestWellKnownTypes.Parser, message, parsed => |
|
|
|
|
{ |
|
|
|
|
Assert.AreEqual("", parsed.StringField); |
|
|
|
@ -144,6 +148,8 @@ namespace Google.Protobuf.WellKnownTypes |
|
|
|
|
// Just to test a single value for sanity... |
|
|
|
|
Assert.AreEqual("Second", message.StringField[1]); |
|
|
|
|
|
|
|
|
|
MessageParsingHelpers.AssertWritingMessage(message); |
|
|
|
|
|
|
|
|
|
MessageParsingHelpers.AssertRoundtrip(RepeatedWellKnownTypes.Parser, message); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -196,6 +202,8 @@ namespace Google.Protobuf.WellKnownTypes |
|
|
|
|
// Just to test a single value for sanity... |
|
|
|
|
Assert.AreEqual("Second", message.StringField[12]); |
|
|
|
|
|
|
|
|
|
MessageParsingHelpers.AssertWritingMessage(message); |
|
|
|
|
|
|
|
|
|
MessageParsingHelpers.AssertRoundtrip(MapWellKnownTypes.Parser, message); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|