Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Nov 1, 2022
1 parent fb52692 commit 5ef3672
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/mdsource/verify-options.source.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@ snippet: OnHandlers

## OmitContentFromException

By default, when a verify mismatch occurs for text, the content of the received and verified files is included in the exception that is thrown. This results in that text being included in test runners and build output. To omit the content use `VerifierSettings.OmitContentFromException`.
By default, when a verify mismatch occurs for text, the content of the received and verified files is included in the exception that is thrown. This results in that text being included in test runners and build output. To omit the content use `VerifierSettings.OmitContentFromException`.


## DisableDiff

To disable diff launching:

snippet: DisableDiff
14 changes: 14 additions & 0 deletions docs/verify-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,17 @@ public Task OnHandlersSample()
## OmitContentFromException

By default, when a verify mismatch occurs for text, the content of the received and verified files is included in the exception that is thrown. This results in that text being included in test runners and build output. To omit the content use `VerifierSettings.OmitContentFromException`.


## DisableDiff

To disable diff launching:

<!-- snippet: DisableDiff -->
<a id='snippet-disablediff'></a>
```cs
var settings = new VerifySettings();
settings.DisableDiff();
```
<sup><a href='/src/Verify.Tests/Snippets/Snippets.cs#L105-L110' title='Snippet source file'>snippet source</a> | <a href='#snippet-disablediff' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

0 comments on commit 5ef3672

Please sign in to comment.