Skip to content

Commit

Permalink
Fixed IsNull tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Mar 13, 2020
1 parent 51b45e2 commit 244da99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UnitTests/Diagnostics/Test_Guard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ public void Test_Guard_IsNull_Ok()

[TestCategory("Guard")]
[TestMethod]
[ExpectedException(typeof(ArgumentNullException))]
[ExpectedException(typeof(ArgumentException))]
public void Test_Guard_IsNull_ClassFail()
{
Guard.IsNull(new object(), nameof(Test_Guard_IsNull_ClassFail));
}

[TestCategory("Guard")]
[TestMethod]
[ExpectedException(typeof(ArgumentNullException))]
[ExpectedException(typeof(ArgumentException))]
public void Test_Guard_IsNull_StructFail()
{
Guard.IsNull<int>(7, nameof(Test_Guard_IsNull_StructFail));
Expand Down

0 comments on commit 244da99

Please sign in to comment.