Skip to content

Commit 2c1f0f4

Browse files
committed
Change tests so that they are not depend on xunit lib version
1 parent 02421ba commit 2c1f0f4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/FluentResults.Extensions.FluentAssertions.Test/ValueResultTests/ReasonSatisfyTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ public void A_reason_with_another_property_throw_exception()
4040
.That.Satisfy<SomeReason>(r => r.Prop.Should().Be("Prop2"));
4141

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

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

6160
action.Should()
62-
.Throw<XunitException>()
63-
.WithMessage($"Reason should be of type 'FluentResults.Extensions.FluentAssertions.Test.AnotherReason', but is of type 'FluentResults.Extensions.FluentAssertions.Test.SomeReason'");
61+
.Throw<XunitException>();
6462
}
6563
}
6664
}

0 commit comments

Comments
 (0)