Skip to content

Commit c0e12e6

Browse files
committed
.
1 parent 4513dbe commit c0e12e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/temp-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ Assert.Equal(data, readData);
350350
<!-- snippet: TempFileCreateBinaryWithExtension -->
351351
<a id='snippet-TempFileCreateBinaryWithExtension'></a>
352352
```cs
353-
using var temp = await TempFile.CreateBinary(imageBinaryData, ".png");
353+
using var temp = await TempFile.CreateBinary(byteArray, ".png");
354354

355355
// Process the temporary image file
356356
```

src/Verify.Tests/TempFileTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,11 +724,11 @@ public async Task CreateBinary()
724724
[Fact]
725725
public async Task CreateBinaryWithExtension()
726726
{
727-
var imageBinaryData = await File.ReadAllBytesAsync("source.png");
727+
byte[] byteArray = [];
728728

729729
#region TempFileCreateBinaryWithExtension
730730

731-
using var temp = await TempFile.CreateBinary(imageBinaryData, ".png");
731+
using var temp = await TempFile.CreateBinary(byteArray, ".png");
732732

733733
// Process the temporary image file
734734

0 commit comments

Comments
 (0)