Skip to content

Commit

Permalink
tests for issue #40 construct with negative values
Browse files Browse the repository at this point in the history
  • Loading branch information
WalkerCodeRanger committed Oct 24, 2019
1 parent 8483318 commit 8101c20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Semver.Test/SemVersionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public void ConstructSemVersionDefaultValues()
[Theory]
[InlineData(1, 2, 3, "a", "b")]
[InlineData(1, 2, 3, null, null)]
// TODO these should be invalid and throw argument exceptions issue #40
[InlineData(-1, 0, 0, "", "")]
[InlineData(0, -1, 0, "", "")]
[InlineData(0, 0, -1, "", "")]
public void ConstructSemVersion(int major, int minor, int patch, string prerelease, string build)
{
var v = new SemVersion(major, minor, patch, prerelease, build);
Expand Down

0 comments on commit 8101c20

Please sign in to comment.