diff --git a/docs/append-file.md b/docs/append-file.md index 9bc32ba24f..e971474960 100644 --- a/docs/append-file.md +++ b/docs/append-file.md @@ -18,7 +18,7 @@ Allows extra files to be verified in addition to the primary target. [Fact] public Task BinaryFluent() => Verify("Foo", settings) - .AppendFile("sample.png"); + .AppendFile(File.OpenRead("sample.png")); ``` snippet source | anchor diff --git a/src/Verify.Tests/Converters/InstanceFileAppenderTests.BinaryFluent#02.verified.txt b/src/Verify.Tests/Converters/InstanceFileAppenderTests.BinaryFluent#02.verified.txt deleted file mode 100644 index f0866cd4c4..0000000000 --- a/src/Verify.Tests/Converters/InstanceFileAppenderTests.BinaryFluent#02.verified.txt +++ /dev/null @@ -1 +0,0 @@ -sample.png \ No newline at end of file diff --git a/src/Verify.Tests/Converters/InstanceFileAppenderTests.BinaryFluent#sample.verified.png b/src/Verify.Tests/Converters/InstanceFileAppenderTests.BinaryFluent#sample.verified.png new file mode 100644 index 0000000000..b54820aa60 Binary files /dev/null and b/src/Verify.Tests/Converters/InstanceFileAppenderTests.BinaryFluent#sample.verified.png differ diff --git a/src/Verify.Tests/Converters/InstanceFileAppenderTests.cs b/src/Verify.Tests/Converters/InstanceFileAppenderTests.cs index 904b664858..83451f144f 100644 --- a/src/Verify.Tests/Converters/InstanceFileAppenderTests.cs +++ b/src/Verify.Tests/Converters/InstanceFileAppenderTests.cs @@ -23,7 +23,7 @@ public Task WithName() => [Fact] public Task BinaryFluent() => Verify("Foo", settings) - .AppendFile("sample.png"); + .AppendFile(File.OpenRead("sample.png")); #endregion