Skip to content

Commit

Permalink
Conditional compile ArgumentNullException.ThrowIfNull tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-strecker-sonarsource committed Apr 11, 2023
1 parent 5868d23 commit 34986b8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ public void NullConditional_ThrowOnNull()
validator.ValidateTag("End", x => x.Should().HaveOnlyConstraint(ObjectConstraint.NotNull));
}

#if NET

[DataTestMethod]
[DataRow("ThrowIfNull")]
[DataRow("ThrowIfNullOrEmpty")]
Expand All @@ -230,6 +232,8 @@ public void ArgumentNullException_ThrowIfNull(string throwIfNullMethod)
validator.ValidateTag("End", x => x.Should().HaveOnlyConstraint(ObjectConstraint.NotNull));
}

#endif

[DataTestMethod]
[DataRow("+=")]
[DataRow("-=")]
Expand Down

0 comments on commit 34986b8

Please sign in to comment.