Commit f084d622 authored by Sydney Acksman's avatar Sydney Acksman

Add test for not throwing on missing required

parent 6f09cc3a
...@@ -261,6 +261,13 @@ namespace Google.Protobuf ...@@ -261,6 +261,13 @@ namespace Google.Protobuf
Assert.True(message.IsInitialized()); Assert.True(message.IsInitialized());
} }
[Test]
public void RequiredFieldsNoThrow()
{
TestRequired.Parser.ParseFrom(new byte[0]);
(TestRequired.Parser as MessageParser).ParseFrom(new byte[0]);
}
[Test] [Test]
public void RequiredFieldsInExtensions() public void RequiredFieldsInExtensions()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment