File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 33using System . IO . Pipelines ;
44using System . Text ;
55using System . Threading . Tasks ;
6+ using AutoFixture . AutoNSubstitute ;
67using BencodeNET . IO ;
78using FluentAssertions ;
89using NSubstitute ;
@@ -68,7 +69,7 @@ public async Task CanReadLessThanRequested()
6869
6970 [ Theory ]
7071 [ AutoMockedData ]
71- public async Task CanReadIncompleteFirstTry ( PipeReader reader )
72+ public async Task CanReadIncompleteFirstTry ( [ Substitute ] PipeReader reader )
7273 {
7374 var bytes = Encoding . UTF8 . GetBytes ( "abcdef" ) . AsMemory ( ) ;
7475
@@ -89,7 +90,7 @@ public async Task CanReadIncompleteFirstTry(PipeReader reader)
8990
9091 [ Theory ]
9192 [ AutoMockedData ]
92- public async Task CanReadLessThanReceivedAsync ( PipeReader reader )
93+ public async Task CanReadLessThanReceivedAsync ( [ Substitute ] PipeReader reader )
9394 {
9495 var bytes = Encoding . UTF8 . GetBytes ( "abcdef" ) . AsMemory ( ) ;
9596
You can’t perform that action at this time.
0 commit comments