33
44namespace NSubstitute . Benchmarks
55{
6- [ ClrJob , CoreJob ]
6+ [ SimpleJob ]
77 [ MemoryDiagnoser ]
88 public class DispatchConfiguredMatchingCallBenchmark
99 {
@@ -17,26 +17,26 @@ public DispatchConfiguredMatchingCallBenchmark()
1717 {
1818 _interfaceProxy = Substitute . For < IInterfaceWithSingleMethod > ( ) ;
1919 _interfaceProxy . IntMethod ( "42" ) . Returns ( 42 ) ;
20- _interfaceProxy . When ( x => x . VoidMethod ( "42" ) ) . Do ( delegate { } ) ;
21-
20+ _interfaceProxy . When ( x => x . VoidMethod ( "42" ) ) . Do ( delegate { } ) ;
21+
2222 _abstractClassProxy = Substitute . For < AbstractClassWithSingleMethod > ( ) ;
2323 _abstractClassProxy . IntMethod ( "42" ) . Returns ( 42 ) ;
24- _abstractClassProxy . When ( x => x . VoidMethod ( "42" ) ) . Do ( delegate { } ) ;
25-
24+ _abstractClassProxy . When ( x => x . VoidMethod ( "42" ) ) . Do ( delegate { } ) ;
25+
2626 _classPartialProxy = Substitute . For < ClassWithSingleMethod > ( ) ;
2727 _classPartialProxy . IntMethod ( "42" ) . Returns ( 42 ) ;
28- _classPartialProxy . When ( x => x . VoidMethod ( "42" ) ) . Do ( delegate { } ) ;
29-
28+ _classPartialProxy . When ( x => x . VoidMethod ( "42" ) ) . Do ( delegate { } ) ;
29+
3030 _intDelegateProxy = Substitute . For < IntDelegate > ( ) ;
3131 _intDelegateProxy . Invoke ( "42" ) . Returns ( 42 ) ;
32-
32+
3333 _voidDelegateProxy = Substitute . For < VoidDelegate > ( ) ;
34- _voidDelegateProxy . When ( x => x . Invoke ( "42" ) ) . Do ( delegate { } ) ;
34+ _voidDelegateProxy . When ( x => x . Invoke ( "42" ) ) . Do ( delegate { } ) ;
3535 }
3636
3737 [ Benchmark ]
3838 public int DispatchInterfaceProxyCall_Int ( ) => _interfaceProxy . IntMethod ( "42" ) ;
39-
39+
4040 [ Benchmark ]
4141 public int DispatchAbstractClassProxyCall_Int ( ) => _abstractClassProxy . IntMethod ( "42" ) ;
4242
@@ -48,7 +48,7 @@ public DispatchConfiguredMatchingCallBenchmark()
4848
4949 [ Benchmark ]
5050 public void DispatchInterfaceProxyCall_Void ( ) => _interfaceProxy . VoidMethod ( "42" ) ;
51-
51+
5252 [ Benchmark ]
5353 public void DispatchAbstractClassProxyCall_Void ( ) => _abstractClassProxy . VoidMethod ( "42" ) ;
5454
0 commit comments