Skip to content

Commit

Permalink
Change tests so that they are not depend on xunit lib version
Browse files Browse the repository at this point in the history
  • Loading branch information
altmann committed Nov 6, 2022
1 parent 02421ba commit 2c1f0f4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public void A_reason_with_another_property_throw_exception()
.That.Satisfy<SomeReason>(r => r.Prop.Should().Be("Prop2"));

action.Should()
.Throw<XunitException>()
.WithMessage($"Expected r.Prop to be \"Prop2\", but \"Prop1\" differs near \"1\" (index 4).");
.Throw<XunitException>();
}

[Fact]
Expand All @@ -59,8 +58,7 @@ public void A_reason_with_another_type_throw_exception()
.That.Satisfy<AnotherReason>(r => {});

action.Should()
.Throw<XunitException>()
.WithMessage($"Reason should be of type 'FluentResults.Extensions.FluentAssertions.Test.AnotherReason', but is of type 'FluentResults.Extensions.FluentAssertions.Test.SomeReason'");
.Throw<XunitException>();
}
}
}

0 comments on commit 2c1f0f4

Please sign in to comment.