@@ -58,7 +58,7 @@ public void ShouldLog3Entries()
5858 {
5959 // Act
6060 InvalidOperationException ex =
61- Assert . Throws < InvalidOperationException > ( ( ) => _proxy . SynchronousVoidExceptionMethod ( ) ) ;
61+ Assert . Throws < InvalidOperationException > ( _proxy . SynchronousVoidExceptionMethod ) ;
6262
6363 // Assert
6464 Assert . Equal ( 3 , _log . Count ) ;
@@ -71,7 +71,7 @@ public void ShouldLog3Entries()
7171 public void ShouldAllowProcessingPriorToInvocation ( )
7272 {
7373 // Act
74- Assert . Throws < InvalidOperationException > ( ( ) => _proxy . SynchronousVoidExceptionMethod ( ) ) ;
74+ Assert . Throws < InvalidOperationException > ( _proxy . SynchronousVoidExceptionMethod ) ;
7575
7676 // Assert
7777 Assert . Equal ( MethodName + ":StartingVoidInvocation" , _log [ 0 ] ) ;
@@ -82,7 +82,7 @@ public void ShouldAllowExceptionHandling()
8282 {
8383 // Act
8484 InvalidOperationException ex =
85- Assert . Throws < InvalidOperationException > ( ( ) => _proxy . SynchronousVoidExceptionMethod ( ) ) ;
85+ Assert . Throws < InvalidOperationException > ( _proxy . SynchronousVoidExceptionMethod ) ;
8686
8787 // Assert
8888 Assert . Equal ( MethodName + ":VoidExceptionThrown:" + ex . Message , _log [ 2 ] ) ;
@@ -96,13 +96,13 @@ public void ShouldPreserveTheStackTrace()
9696
9797 // Act
9898 InvalidOperationException interceptedException =
99- Assert . Throws < InvalidOperationException > ( ( ) => _proxy . SynchronousVoidExceptionMethod ( ) ) ;
99+ Assert . Throws < InvalidOperationException > ( _proxy . SynchronousVoidExceptionMethod ) ;
100100
101101 // Assert
102102
103103 // Get the exception without being intercepted, this is used to compare against the intercepted exception.
104104 InvalidOperationException noneInterceptedException =
105- Assert . Throws < InvalidOperationException > ( ( ) => _target . SynchronousVoidExceptionMethod ( ) ) ;
105+ Assert . Throws < InvalidOperationException > ( _target . SynchronousVoidExceptionMethod ) ;
106106
107107 CompareStackTrace ( noneInterceptedException , interceptedException ) ;
108108 }
@@ -509,7 +509,7 @@ public async Task ShouldReturnAFaultedTask()
509509 Assert . IsType < ArgumentOutOfRangeException > ( result . Exception ? . InnerException ) ;
510510
511511 ArgumentOutOfRangeException noneInterceptedException =
512- await Assert . ThrowsAsync < ArgumentOutOfRangeException > ( ( ) => target . Test1 ( ) ) . ConfigureAwait ( false ) ;
512+ await Assert . ThrowsAsync < ArgumentOutOfRangeException > ( target . Test1 ) . ConfigureAwait ( false ) ;
513513
514514 CompareStackTrace ( noneInterceptedException , result . Exception ? . InnerException ) ;
515515 }
@@ -529,7 +529,7 @@ public async Task ShouldReturnAFaultedTaskResult()
529529 Assert . IsType < ArgumentOutOfRangeException > ( result . Exception ? . InnerException ) ;
530530
531531 ArgumentOutOfRangeException noneInterceptedException =
532- await Assert . ThrowsAsync < ArgumentOutOfRangeException > ( ( ) => target . Test2 ( ) ) . ConfigureAwait ( false ) ;
532+ await Assert . ThrowsAsync < ArgumentOutOfRangeException > ( target . Test2 ) . ConfigureAwait ( false ) ;
533533
534534 CompareStackTrace ( noneInterceptedException , result . Exception ? . InnerException ) ;
535535 }
0 commit comments