@@ -40,18 +40,17 @@ public void SkipAutoPropsInRecords(bool skipAutoProps)
40
40
{
41
41
TestInstrumentationHelper . GetCoverageResult ( path )
42
42
. Document ( "Instrumentation.Records.cs" )
43
- . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 12 , 13 )
44
- . AssertNonInstrumentedLines ( BuildConfiguration . Release , 12 , 13 )
45
- . AssertLinesCovered ( BuildConfiguration . Debug , ( 7 , 1 ) , ( 9 , 1 ) , ( 10 , 1 ) , ( 11 , 1 ) )
46
- . AssertLinesCovered ( BuildConfiguration . Release , ( 10 , 1 ) ) ;
43
+ . AssertNonInstrumentedLines ( BuildConfiguration . Debug , ( 12 ) )
44
+ . AssertNonInstrumentedLines ( BuildConfiguration . Release , ( 12 ) )
45
+ . AssertLinesCovered ( BuildConfiguration . Debug , ( 7 , 1 ) , ( 8 , 1 ) , ( 9 , 1 ) , ( 10 , 1 ) , ( 11 , 1 ) , ( 13 , 1 ) )
46
+ . AssertLinesCovered ( BuildConfiguration . Release , ( 8 , 1 ) , ( 10 , 1 ) , ( 11 , 1 ) , ( 13 , 1 ) ) ;
47
47
}
48
48
else
49
49
{
50
50
TestInstrumentationHelper . GetCoverageResult ( path )
51
51
. Document ( "Instrumentation.Records.cs" )
52
52
. AssertLinesCoveredFromTo ( BuildConfiguration . Debug , 7 , 13 )
53
- . AssertLinesCoveredFromTo ( BuildConfiguration . Release , 10 , 10 )
54
- . AssertLinesCoveredFromTo ( BuildConfiguration . Release , 12 , 13 ) ;
53
+ . AssertLinesCovered ( BuildConfiguration . Release , ( 8 , 1 ) , ( 10 , 1 ) , ( 11 , 1 ) , ( 12 , 1 ) , ( 13 , 1 ) ) ;
55
54
}
56
55
}
57
56
finally
@@ -83,10 +82,8 @@ public void SkipRecordWithProperties(bool skipAutoProps)
83
82
{
84
83
TestInstrumentationHelper . GetCoverageResult ( path )
85
84
. Document ( "Instrumentation.Records.cs" )
86
- . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 18 , 18 )
87
- . AssertNonInstrumentedLines ( BuildConfiguration . Release , 18 , 18 )
88
- . AssertLinesCovered ( BuildConfiguration . Debug , ( 21 , 1 ) , ( 22 , 1 ) , ( 23 , 1 ) )
89
- . AssertLinesCovered ( BuildConfiguration . Release , ( 22 , 1 ) ) ;
85
+ . AssertLinesCovered ( BuildConfiguration . Debug , ( 18 , 1 ) , ( 20 , 1 ) , ( 21 , 1 ) , ( 22 , 1 ) , ( 23 , 1 ) )
86
+ . AssertLinesCovered ( BuildConfiguration . Release , ( 18 , 1 ) , ( 20 , 1 ) , ( 22 , 1 ) ) ;
90
87
}
91
88
else
92
89
{
@@ -125,18 +122,16 @@ public void SkipInheritingRecordsWithProperties(bool skipAutoProps)
125
122
{
126
123
TestInstrumentationHelper . GetCoverageResult ( path )
127
124
. Document ( "Instrumentation.Records.cs" )
128
- . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 28 , 28 )
129
- . AssertNonInstrumentedLines ( BuildConfiguration . Release , 28 , 28 )
130
- . AssertLinesCovered ( BuildConfiguration . Debug , ( 30 , 1 ) , ( 33 , 1 ) , ( 34 , 1 ) , ( 35 , 1 ) )
131
- . AssertLinesCovered ( BuildConfiguration . Release , ( 34 , 1 ) ) ;
125
+ . AssertLinesCovered ( BuildConfiguration . Debug , ( 28 , 1 ) , ( 30 , 1 ) , ( 32 , 1 ) , ( 33 , 1 ) , ( 34 , 1 ) , ( 35 , 1 ) )
126
+ . AssertLinesCovered ( BuildConfiguration . Release , ( 28 , 1 ) , ( 30 , 1 ) , ( 32 , 1 ) , ( 34 , 1 ) ) ;
132
127
133
128
}
134
129
else
135
130
{
136
131
TestInstrumentationHelper . GetCoverageResult ( path )
137
132
. Document ( "Instrumentation.Records.cs" )
138
- . AssertLinesCovered ( BuildConfiguration . Debug , ( 28 , 1 ) , ( 30 , 1 ) , ( 33 , 1 ) , ( 34 , 1 ) , ( 35 , 1 ) )
139
- . AssertLinesCovered ( BuildConfiguration . Release , ( 28 , 1 ) , ( 30 , 1 ) , ( 34 , 1 ) ) ;
133
+ . AssertLinesCovered ( BuildConfiguration . Debug , ( 28 , 1 ) , ( 30 , 1 ) , ( 32 , 1 ) , ( 33 , 1 ) , ( 34 , 1 ) , ( 35 , 1 ) )
134
+ . AssertLinesCovered ( BuildConfiguration . Release , ( 28 , 1 ) , ( 30 , 1 ) , ( 32 , 1 ) , ( 34 , 1 ) ) ;
140
135
}
141
136
}
142
137
finally
0 commit comments