-
-
Notifications
You must be signed in to change notification settings - Fork 541
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for FallbackTestFramework and AssertionFailedException
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
Tests/FluentAssertions.Specs/Execution/FallbackTestFrameworkTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<AssertionFailedException>() | ||
.WithMessage("test message"); | ||
} | ||
} |