File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -350,11 +350,10 @@ Assert.Equal(data, readData);
350350<!-- snippet: TempFileCreateBinaryWithExtension -->
351351<a id =' snippet-TempFileCreateBinaryWithExtension ' ></a >
352352``` cs
353- using var temp = await TempFile .CreateBinary (byteArray , " .png" );
354-
355- // Process the temporary image file
353+ byte [] data = [0x 01 , 0x 02 , 0x 03 , 0x 04 ];
354+ using var temp = await TempFile .CreateBinary (data , " .bin" );
356355```
357- <sup ><a href =' /src/Verify.Tests/TempFileTests.cs#L729-L735 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-TempFileCreateBinaryWithExtension ' title =' Start of snippet ' >anchor</a ></sup >
356+ <sup ><a href =' /src/Verify.Tests/TempFileTests.cs#L727-L732 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-TempFileCreateBinaryWithExtension ' title =' Start of snippet ' >anchor</a ></sup >
358357<!-- endSnippet -->
359358
360359
You can’t perform that action at this time.
0 commit comments