@@ -40,18 +40,17 @@ public void SkipAutoPropsInRecords(bool skipAutoProps)
4040 {
4141 TestInstrumentationHelper . GetCoverageResult ( path )
4242 . 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 ) ) ;
4747 }
4848 else
4949 {
5050 TestInstrumentationHelper . GetCoverageResult ( path )
5151 . Document ( "Instrumentation.Records.cs" )
5252 . 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 ) ) ;
5554 }
5655 }
5756 finally
@@ -83,10 +82,8 @@ public void SkipRecordWithProperties(bool skipAutoProps)
8382 {
8483 TestInstrumentationHelper . GetCoverageResult ( path )
8584 . 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 ) ) ;
9087 }
9188 else
9289 {
@@ -125,18 +122,16 @@ public void SkipInheritingRecordsWithProperties(bool skipAutoProps)
125122 {
126123 TestInstrumentationHelper . GetCoverageResult ( path )
127124 . 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 ) ) ;
132127
133128 }
134129 else
135130 {
136131 TestInstrumentationHelper . GetCoverageResult ( path )
137132 . 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 ) ) ;
140135 }
141136 }
142137 finally
0 commit comments