<!--
GENERATED FILE - DO NOT EDIT
This file was generated by [MarkdownSnippets](https://github.com/SimonCropp/MarkdownSnippets).
Source File: /docs/mdsource/append-file.source.md
To change this file edit the source file and then run MarkdownSnippets.
-->

# AppendFile

Allows extra files to be verified in addition to the primary target.


## AppendFile

<!-- snippet: AppendFile -->
<a id='snippet-AppendFile'></a>
```cs
[Fact]
public Task AppendFile() =>
    Verify("Foo", settings)
        .AppendFile("sample.png");
```
<sup><a href='/src/Verify.Tests/Converters/InstanceFileAppenderTests.cs#L20-L27' title='Snippet source file'>snippet source</a> | <a href='#snippet-AppendFile' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Will result in two files being verified:

 * `Tests.AppendFile#00.verified.txt` containing `Foo`
 * `Tests.AppendFile#sample.verified.png`


## AppendContentAsFile

<!-- snippet: AppendContentAsFile -->
<a id='snippet-AppendContentAsFile'></a>
```cs
[Fact]
public Task AppendContentAsFile() =>
    Verify("Foo")
        .AppendContentAsFile("extra content");
```
<sup><a href='/src/Verify.Tests/Converters/InstanceFileAppenderTests.cs#L29-L36' title='Snippet source file'>snippet source</a> | <a href='#snippet-AppendContentAsFile' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Will result in two files being verified:

 * `Tests.AppendContentAsFile#00.verified.txt` containing `Foo`
 * `Tests.AppendContentAsFile#01.verified.txt` containing `extra content`