@@ -30,10 +30,10 @@ public void ASRead()
3030 var expected = 42 ;
3131 sut . Setup ( x => x . ReadAsync ( It . IsAny < byte [ ] > ( ) , It . IsAny < int > ( ) , It . IsAny < int > ( ) , It . IsAny < CancellationToken > ( ) ) )
3232 . ReturnsAsync ( expected ) ;
33- var read = sut . Object . Read ( null , 0 , 0 ) ;
33+ var read = sut . Object . Read ( null ! , 0 , 0 ) ;
3434 Assert . AreEqual ( expected , read ) ;
3535
36- read = sut . Object . EndRead ( sut . Object . BeginRead ( null , 0 , 0 , null , null ) ) ;
36+ read = sut . Object . EndRead ( sut . Object . BeginRead ( null ! , 0 , 0 , null ! , null ! ) ) ;
3737 Assert . AreEqual ( expected , read ) ;
3838 }
3939
@@ -46,10 +46,10 @@ public void ASWrite()
4646 var sut = new Mock < AsyncStream > ( ) { CallBase = true } ;
4747 sut . Setup ( x => x . WriteAsync ( It . IsAny < byte [ ] > ( ) , It . IsAny < int > ( ) , It . IsAny < int > ( ) , It . IsAny < CancellationToken > ( ) ) )
4848 . Verifiable ( ) ;
49- sut . Object . Write ( null , 0 , 0 ) ;
49+ sut . Object . Write ( null ! , 0 , 0 ) ;
5050 sut . Verify ( x => x . WriteAsync ( It . IsAny < byte [ ] > ( ) , It . IsAny < int > ( ) , It . IsAny < int > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Once ) ;
5151
52- sut . Object . EndWrite ( sut . Object . BeginWrite ( null , 0 , 0 , null , null ) ) ;
52+ sut . Object . EndWrite ( sut . Object . BeginWrite ( null ! , 0 , 0 , null ! , null ! ) ) ;
5353 sut . Verify ( x => x . WriteAsync ( It . IsAny < byte [ ] > ( ) , It . IsAny < int > ( ) , It . IsAny < int > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Exactly ( 2 ) ) ;
5454 }
5555
@@ -82,7 +82,7 @@ public void ASDispose()
8282 [ TestMethod ]
8383 public void ASSynchronized ( )
8484 {
85- Assert . ThrowsException < ArgumentNullException > ( ( ) => AsyncStream . Synchronized ( null ) ) ;
85+ Assert . ThrowsException < ArgumentNullException > ( ( ) => AsyncStream . Synchronized ( null ! ) ) ;
8686 var sut = new Mock < AsyncStream > ( ) { CallBase = true } ;
8787 var synchronized = AsyncStream . Synchronized ( sut . Object ) ;
8888 Assert . IsNotNull ( synchronized ) ;
@@ -156,23 +156,23 @@ public void ASSynchronized()
156156 // Read
157157 sut . Setup ( x => x . ReadAsync ( It . IsAny < byte [ ] > ( ) , It . IsAny < int > ( ) , It . IsAny < int > ( ) , It . IsAny < CancellationToken > ( ) ) )
158158 . ReturnsAsync ( expected2 ) ;
159- var read = synchronized . ReadAsync ( null , 0 , 0 ) . Result ;
159+ var read = synchronized . ReadAsync ( null ! , 0 , 0 ) . Result ;
160160 Assert . AreEqual ( expected2 , read ) ;
161- read = synchronized . Read ( null , 0 , 0 ) ;
161+ read = synchronized . Read ( null ! , 0 , 0 ) ;
162162 Assert . AreEqual ( expected2 , read ) ;
163- read = synchronized . EndRead ( synchronized . BeginRead ( null , 0 , 0 , null , null ) ) ;
163+ read = synchronized . EndRead ( synchronized . BeginRead ( null ! , 0 , 0 , null ! , null ! ) ) ;
164164 Assert . AreEqual ( expected2 , read ) ;
165165
166166 // Write
167167 sut . Setup ( x => x . WriteAsync ( It . IsAny < byte [ ] > ( ) , It . IsAny < int > ( ) , It . IsAny < int > ( ) , It . IsAny < CancellationToken > ( ) ) )
168168 . Verifiable ( ) ;
169- synchronized . WriteAsync ( null , 0 , 0 ) . Wait ( ) ;
169+ synchronized . WriteAsync ( null ! , 0 , 0 ) . Wait ( ) ;
170170 sut . Verify ( x => x . WriteAsync ( It . IsAny < byte [ ] > ( ) , It . IsAny < int > ( ) , It . IsAny < int > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Once ) ;
171- synchronized . Write ( null , 0 , 0 ) ;
171+ synchronized . Write ( null ! , 0 , 0 ) ;
172172 sut . Verify ( x => x . WriteAsync ( It . IsAny < byte [ ] > ( ) , It . IsAny < int > ( ) , It . IsAny < int > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Exactly ( 2 ) ) ;
173- synchronized . EndWrite ( synchronized . BeginWrite ( null , 0 , 0 , null , null ) ) ;
173+ synchronized . EndWrite ( synchronized . BeginWrite ( null ! , 0 , 0 , null ! , null ! ) ) ;
174174 sut . Verify ( x => x . WriteAsync ( It . IsAny < byte [ ] > ( ) , It . IsAny < int > ( ) , It . IsAny < int > ( ) , It . IsAny < CancellationToken > ( ) ) , Times . Exactly ( 3 ) ) ;
175- Assert . ThrowsExceptionAsync < OperationCanceledException > ( ( ) => synchronized . WriteAsync ( null , 0 , 0 , new CancellationToken ( true ) ) ) ;
175+ Assert . ThrowsExceptionAsync < OperationCanceledException > ( ( ) => synchronized . WriteAsync ( null ! , 0 , 0 , new CancellationToken ( true ) ) ) ;
176176
177177 // Async
178178 sut . Setup ( x => x . FlushAsync ( It . IsAny < CancellationToken > ( ) ) ) . Verifiable ( ) ;
0 commit comments