Add test for not throwing on missing required

pull/6674/head
Sydney Acksman 5 years ago
parent 6f09cc3a0c
commit f084d622c2
  1. 7
      csharp/src/Google.Protobuf.Test/GeneratedMessageTest.Proto2.cs

@ -261,6 +261,13 @@ namespace Google.Protobuf
Assert.True(message.IsInitialized());
}
[Test]
public void RequiredFieldsNoThrow()
{
TestRequired.Parser.ParseFrom(new byte[0]);
(TestRequired.Parser as MessageParser).ParseFrom(new byte[0]);
}
[Test]
public void RequiredFieldsInExtensions()
{

Loading…
Cancel
Save