diff --git a/Tests/FluentAssertions.Specs/Execution/FallbackTestFrameworkTests.cs b/Tests/FluentAssertions.Specs/Execution/FallbackTestFrameworkTests.cs new file mode 100644 index 0000000000..f8231e0898 --- /dev/null +++ b/Tests/FluentAssertions.Specs/Execution/FallbackTestFrameworkTests.cs @@ -0,0 +1,24 @@ +using FluentAssertions.Execution; +using Xunit; + +namespace FluentAssertions.Specs.Execution; + +public class FallbackTestFrameworkTests +{ + [Fact] + public void The_fallback_test_framework_is_available() + { + var sut = new FallbackTestFramework(); + + sut.IsAvailable.Should().BeTrue(); + } + + [Fact] + public void Throwing_with_messages_throws_the_exception() + { + var sut = new FallbackTestFramework(); + + sut.Invoking(x => x.Throw("test message")).Should().ThrowExactly() + .WithMessage("test message"); + } +}