Skip to content

Commit

Permalink
Add test for not throwing on missing required
Browse files Browse the repository at this point in the history
  • Loading branch information
ObsidianMinor committed Nov 20, 2019
1 parent 6f09cc3 commit f084d62
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ public void RequiredFields()
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()
{
Expand Down

0 comments on commit f084d62

Please sign in to comment.