@@ -19,7 +19,7 @@ public void Yield_Single()
1919 {
2020 CoveragePrepareResult coveragePrepareResult = await TestInstrumentationHelper . Run < Yield > ( instance =>
2121 {
22- foreach ( var _ in instance . One ( ) ) ;
22+ foreach ( var _ in instance . One ( ) ) ;
2323
2424 return Task . CompletedTask ;
2525 } , persistPrepareResultToFile : pathSerialize [ 0 ] ) ;
@@ -50,7 +50,7 @@ public void Yield_Multiple()
5050 {
5151 CoveragePrepareResult coveragePrepareResult = await TestInstrumentationHelper . Run < Yield > ( instance =>
5252 {
53- foreach ( var _ in instance . Two ( ) ) ;
53+ foreach ( var _ in instance . Two ( ) ) ;
5454
5555 return Task . CompletedTask ;
5656 } , persistPrepareResultToFile : pathSerialize [ 0 ] ) ;
@@ -80,7 +80,7 @@ public void Yield_SingleWithSwitch()
8080 {
8181 CoveragePrepareResult coveragePrepareResult = await TestInstrumentationHelper . Run < Yield > ( instance =>
8282 {
83- foreach ( var _ in instance . OneWithSwitch ( 2 ) ) ;
83+ foreach ( var _ in instance . OneWithSwitch ( ) ) ;
8484
8585 return Task . CompletedTask ;
8686 } , persistPrepareResultToFile : pathSerialize [ 0 ] ) ;
@@ -92,7 +92,6 @@ public void Yield_SingleWithSwitch()
9292
9393 result . Document ( "Instrumentation.Yield.cs" )
9494 . Method ( "System.Boolean Coverlet.Core.Samples.Tests.Yield/<OneWithSwitch>d__2::MoveNext()" )
95- . AssertLinesCovered ( ( 30 , 1 ) , ( 31 , 1 ) , ( 37 , 1 ) )
9695 . ExpectedTotalNumberOfBranches ( 1 ) ;
9796 }
9897 finally
0 commit comments