Skip to content

Commit

Permalink
Fix expected error msgs in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jez9999 committed Nov 19, 2022
1 parent 8f26074 commit 52f7db8
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -161,7 +161,7 @@ public void When_a_value_is_not_one_of_the_specified_values_it_should_throw()
// Assert
act
.Should().Throw<XunitException>()
.WithMessage("Expected value to be one of {4, 5}, but found 3.");
.WithMessage("Expected value to be one of {ClassWithCustomEqualMethod(4), ClassWithCustomEqualMethod(5)}, but found ClassWithCustomEqualMethod(3).");
}

[Fact]
Expand All @@ -176,7 +176,7 @@ public void When_a_value_is_not_one_of_the_specified_values_it_should_throw_with
// Assert
act
.Should().Throw<XunitException>()
.WithMessage("Expected value to be one of {4, 5} because those are the valid values, but found 3.");
.WithMessage("Expected value to be one of {ClassWithCustomEqualMethod(4), ClassWithCustomEqualMethod(5)} because those are the valid values, but found ClassWithCustomEqualMethod(3).");
}

[Fact]
Expand Down

0 comments on commit 52f7db8

Please sign in to comment.