Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwoctopusdeploy committed Dec 5, 2023
1 parent 80a8ea9 commit c25a315
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static void ShouldMatchExceptionContract(
string because = "",
params object[] becauseArgs)
{
exception.Should().NotBeNull(because, becauseArgs);
exception.Should().Match(x => expected.ExceptionTypes.Contains(x.GetType()), because, becauseArgs);
exception.Message.Should().ContainAny(expected.ExceptionMessageShouldContainAny, because, becauseArgs);
}
Expand Down

0 comments on commit c25a315

Please sign in to comment.