@@ -41,19 +41,19 @@ public void SkipAutoPropsInRecords(bool skipAutoProps)
4141 TestInstrumentationHelper . GetCoverageResult ( path )
4242 . GenerateReport ( show : true )
4343 . Document ( "Instrumentation.Records.cs" )
44- . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 23 , 24 )
45- . AssertNonInstrumentedLines ( BuildConfiguration . Release , 23 , 24 )
46- . AssertLinesCovered ( BuildConfiguration . Debug , ( 18 , 1 ) , ( 20 , 1 ) , ( 21 , 1 ) , ( 22 , 1 ) )
47- . AssertLinesCovered ( BuildConfiguration . Release , ( 21 , 1 ) ) ;
44+ . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 12 , 13 )
45+ . AssertNonInstrumentedLines ( BuildConfiguration . Release , 12 , 13 )
46+ . AssertLinesCovered ( BuildConfiguration . Debug , ( 7 , 1 ) , ( 9 , 1 ) , ( 10 , 1 ) , ( 11 , 1 ) )
47+ . AssertLinesCovered ( BuildConfiguration . Release , ( 10 , 1 ) ) ;
4848 }
4949 else
5050 {
5151 TestInstrumentationHelper . GetCoverageResult ( path )
5252 . GenerateReport ( show : true )
5353 . Document ( "Instrumentation.Records.cs" )
54- . AssertLinesCoveredFromTo ( BuildConfiguration . Debug , 18 , 24 )
55- . AssertLinesCoveredFromTo ( BuildConfiguration . Release , 21 , 21 )
56- . AssertLinesCoveredFromTo ( BuildConfiguration . Release , 23 , 24 ) ;
54+ . AssertLinesCoveredFromTo ( BuildConfiguration . Debug , 7 , 13 )
55+ . AssertLinesCoveredFromTo ( BuildConfiguration . Release , 10 , 10 )
56+ . AssertLinesCoveredFromTo ( BuildConfiguration . Release , 12 , 13 ) ;
5757 }
5858 }
5959 finally
@@ -86,18 +86,18 @@ public void SkipRecordWithProperties(bool skipAutoProps)
8686 TestInstrumentationHelper . GetCoverageResult ( path )
8787 . GenerateReport ( show : true )
8888 . Document ( "Instrumentation.Records.cs" )
89- . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 29 , 29 )
90- . AssertNonInstrumentedLines ( BuildConfiguration . Release , 29 , 29 )
91- . AssertLinesCovered ( BuildConfiguration . Debug , ( 32 , 1 ) , ( 33 , 1 ) , ( 34 , 1 ) )
92- . AssertLinesCovered ( BuildConfiguration . Release , ( 33 , 1 ) ) ;
89+ . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 18 , 18 )
90+ . AssertNonInstrumentedLines ( BuildConfiguration . Release , 18 , 18 )
91+ . AssertLinesCovered ( BuildConfiguration . Debug , ( 21 , 1 ) , ( 22 , 1 ) , ( 23 , 1 ) )
92+ . AssertLinesCovered ( BuildConfiguration . Release , ( 22 , 1 ) ) ;
9393 }
9494 else
9595 {
9696 TestInstrumentationHelper . GetCoverageResult ( path )
9797 . GenerateReport ( show : true )
9898 . Document ( "Instrumentation.Records.cs" )
99- . AssertLinesCovered ( BuildConfiguration . Debug , ( 29 , 1 ) , ( 31 , 1 ) , ( 32 , 1 ) , ( 33 , 1 ) , ( 34 , 1 ) )
100- . AssertLinesCovered ( BuildConfiguration . Release , ( 29 , 1 ) , ( 31 , 1 ) , ( 33 , 1 ) ) ;
99+ . AssertLinesCovered ( BuildConfiguration . Debug , ( 18 , 1 ) , ( 20 , 1 ) , ( 21 , 1 ) , ( 22 , 1 ) , ( 23 , 1 ) )
100+ . AssertLinesCovered ( BuildConfiguration . Release , ( 18 , 1 ) , ( 20 , 1 ) , ( 22 , 1 ) ) ;
101101 }
102102 }
103103 finally
@@ -130,19 +130,19 @@ public void SkipInheritingRecordsWithProperties(bool skipAutoProps)
130130 TestInstrumentationHelper . GetCoverageResult ( path )
131131 . GenerateReport ( show : true )
132132 . Document ( "Instrumentation.Records.cs" )
133- . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 39 , 39 )
134- . AssertNonInstrumentedLines ( BuildConfiguration . Release , 39 , 39 )
135- . AssertLinesCovered ( BuildConfiguration . Debug , ( 41 , 1 ) , ( 44 , 1 ) , ( 45 , 1 ) , ( 46 , 1 ) )
136- . AssertLinesCovered ( BuildConfiguration . Release , ( 45 , 1 ) ) ;
133+ . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 28 , 28 )
134+ . AssertNonInstrumentedLines ( BuildConfiguration . Release , 28 , 28 )
135+ . AssertLinesCovered ( BuildConfiguration . Debug , ( 30 , 1 ) , ( 33 , 1 ) , ( 34 , 1 ) , ( 35 , 1 ) )
136+ . AssertLinesCovered ( BuildConfiguration . Release , ( 34 , 1 ) ) ;
137137
138138 }
139139 else
140140 {
141141 TestInstrumentationHelper . GetCoverageResult ( path )
142142 . GenerateReport ( show : true )
143143 . Document ( "Instrumentation.Records.cs" )
144- . AssertLinesCovered ( BuildConfiguration . Debug , ( 39 , 1 ) , ( 41 , 1 ) , ( 44 , 1 ) , ( 45 , 1 ) , ( 46 , 1 ) )
145- . AssertLinesCovered ( BuildConfiguration . Release , ( 39 , 1 ) , ( 41 , 1 ) , ( 45 , 1 ) ) ;
144+ . AssertLinesCovered ( BuildConfiguration . Debug , ( 28 , 1 ) , ( 30 , 1 ) , ( 33 , 1 ) , ( 34 , 1 ) , ( 35 , 1 ) )
145+ . AssertLinesCovered ( BuildConfiguration . Release , ( 28 , 1 ) , ( 30 , 1 ) , ( 34 , 1 ) ) ;
146146 }
147147 }
148148 finally
@@ -176,8 +176,8 @@ public void SkipInheritingRecordsWithPropertiesABC(bool skipAutoProps)
176176 . GenerateReport ( show : true )
177177 . Document ( "Instrumentation.Records.cs" )
178178 . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 39 , 39 )
179- . AssertNonInstrumentedLines ( BuildConfiguration . Release , 39 , 39 )
180- . AssertLinesCovered ( BuildConfiguration . Debug , ( 41 , 1 ) , ( 44 , 1 ) , ( 45 , 1 ) , ( 46 , 1 ) )
179+ // .AssertNonInstrumentedLines(BuildConfiguration.Release, 39, 39)
180+ . AssertLinesCovered ( BuildConfiguration . Debug , ( 42 , 1 ) , ( 47 , 1 ) )
181181 . AssertLinesCovered ( BuildConfiguration . Release , ( 45 , 1 ) ) ;
182182
183183 }
@@ -186,8 +186,8 @@ public void SkipInheritingRecordsWithPropertiesABC(bool skipAutoProps)
186186 TestInstrumentationHelper . GetCoverageResult ( path )
187187 . GenerateReport ( show : true )
188188 . Document ( "Instrumentation.Records.cs" )
189- . AssertLinesCovered ( BuildConfiguration . Debug , ( 39 , 1 ) , ( 41 , 1 ) , ( 44 , 1 ) , ( 45 , 1 ) , ( 46 , 1 ) )
190- . AssertLinesCovered ( BuildConfiguration . Release , ( 39 , 1 ) , ( 41 , 1 ) , ( 45 , 1 ) ) ;
189+ . AssertLinesCovered ( BuildConfiguration . Debug , ( 42 , 1 ) , ( 47 , 1 ) ) ;
190+ // .AssertLinesCovered(BuildConfiguration.Release, (39, 1), (41, 1), (45, 1));
191191 }
192192 }
193193 finally
0 commit comments