Skip to content

Commit

Permalink
add Instance_with_message_Fluent
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jan 9, 2023
1 parent 96717dd commit 39bbdb0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaa
9 changes: 9 additions & 0 deletions src/Verify.Tests/Comparer/ComparerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ public async Task Instance_with_message()
Assert.Contains("theMessage", exception.Message);
}

[Fact]
public async Task Instance_with_message_Fluent()
{
var settings = new VerifySettings();
settings.DisableDiff();
var exception = await Assert.ThrowsAsync<VerifyException>(() => Verify("NotTheText", settings).UseStringComparer(CompareWithMessage));
Assert.Contains("theMessage", exception.Message);
}

[ModuleInitializer]
public static void Static_with_messageInit()
{
Expand Down

0 comments on commit 39bbdb0

Please sign in to comment.