|
@@ -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()
|
|
|
{
|