FluentAssertions 5.x has different syntax for ShouldThrow
Arjanno opened this issue · 1 comments
Arjanno commented
The tests using ShouldThrow should be changed to the syntax below if you use a later version of FluentAssertions. I'm using 5.10.2
` public void Substract_more_then_exists()
{
Money money1 = new Money(0,1,0,0,0,0);
Money money2 = new Money(1,0,0,0,0,0);
Action action = () =>
{
Money money = money1 - money2;
};
action.Should().Throw<InvalidOperationException>();
}`
vkhorikov commented
Thanks for the heads-up, feel free to submit a PR.