File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 11namespace System . IO . Abstractions . TestingHelpers . Tests ;
22
3- using System . Collections . Generic ;
4- using System . Linq ;
5- using System . Threading . Tasks ;
3+ using Collections . Generic ;
4+ using Linq ;
5+ using Threading . Tasks ;
66
77using NUnit . Framework ;
88
@@ -258,7 +258,8 @@ public async Task MockFileStream_SharedContent_ReadOnlyStreamShouldRefresh()
258258
259259 // Write new content
260260 writeStream . Position = 0 ;
261- var updatedBytes = System . Text . Encoding . UTF8 . GetBytes ( "updated" ) ; writeStream . Write ( updatedBytes , 0 , updatedBytes . Length ) ;
261+ var updatedBytes = "updated"u8 . ToArray ( ) ;
262+ writeStream . Write ( updatedBytes , 0 , updatedBytes . Length ) ;
262263 writeStream . Flush ( ) ;
263264
264265 // Read-only stream should see updated content
@@ -285,7 +286,8 @@ public async Task MockFileStream_SharedContent_WriteOnlyStreamShouldNotUnnecessa
285286
286287 // Write to write-only stream
287288 writeStream . Position = 0 ;
288- var changedBytes = System . Text . Encoding . UTF8 . GetBytes ( "changed" ) ; writeStream . Write ( changedBytes , 0 , changedBytes . Length ) ;
289+ var changedBytes = "changed"u8 . ToArray ( ) ;
290+ writeStream . Write ( changedBytes , 0 , changedBytes . Length ) ;
289291 writeStream . Flush ( ) ;
290292
291293 // Read stream should see the change
You can’t perform that action at this time.
0 commit comments