@@ -19,7 +19,7 @@ public void Yield_Single()
19
19
{
20
20
CoveragePrepareResult coveragePrepareResult = await TestInstrumentationHelper . Run < Yield > ( instance =>
21
21
{
22
- foreach ( var _ in instance . One ( ) ) ;
22
+ foreach ( var _ in instance . One ( ) ) ;
23
23
24
24
return Task . CompletedTask ;
25
25
} , persistPrepareResultToFile : pathSerialize [ 0 ] ) ;
@@ -50,7 +50,7 @@ public void Yield_Multiple()
50
50
{
51
51
CoveragePrepareResult coveragePrepareResult = await TestInstrumentationHelper . Run < Yield > ( instance =>
52
52
{
53
- foreach ( var _ in instance . Two ( ) ) ;
53
+ foreach ( var _ in instance . Two ( ) ) ;
54
54
55
55
return Task . CompletedTask ;
56
56
} , persistPrepareResultToFile : pathSerialize [ 0 ] ) ;
@@ -80,7 +80,7 @@ public void Yield_SingleWithSwitch()
80
80
{
81
81
CoveragePrepareResult coveragePrepareResult = await TestInstrumentationHelper . Run < Yield > ( instance =>
82
82
{
83
- foreach ( var _ in instance . OneWithSwitch ( 2 ) ) ;
83
+ foreach ( var _ in instance . OneWithSwitch ( ) ) ;
84
84
85
85
return Task . CompletedTask ;
86
86
} , persistPrepareResultToFile : pathSerialize [ 0 ] ) ;
@@ -92,7 +92,6 @@ public void Yield_SingleWithSwitch()
92
92
93
93
result . Document ( "Instrumentation.Yield.cs" )
94
94
. Method ( "System.Boolean Coverlet.Core.Samples.Tests.Yield/<OneWithSwitch>d__2::MoveNext()" )
95
- . AssertLinesCovered ( ( 30 , 1 ) , ( 31 , 1 ) , ( 37 , 1 ) )
96
95
. ExpectedTotalNumberOfBranches ( 1 ) ;
97
96
}
98
97
finally
0 commit comments