@@ -45,7 +45,7 @@ public void NoBranches_DoesNotReturnAttribute_InstrumentsCorrect()
45
45
}
46
46
}
47
47
48
- [ Fact ( Skip = "Hang due to System.Console.ReadKey()" ) ]
48
+ [ Fact ]
49
49
public void If_DoesNotReturnAttribute_InstrumentsCorrect ( )
50
50
{
51
51
string path = Path . GetTempFileName ( ) ;
@@ -68,16 +68,15 @@ public void If_DoesNotReturnAttribute_InstrumentsCorrect()
68
68
CoverageResult result = TestInstrumentationHelper . GetCoverageResult ( path ) ;
69
69
70
70
result . Document ( "Instrumentation.DoesNotReturn.cs" )
71
- . AssertInstrumentLines ( BuildConfiguration . Debug , 7 , 8 , 19 , 20 , 22 , 23 , 24 , 25 , 29 , 30 )
72
- . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 26 , 27 ) ;
71
+ . AssertInstrumentLines ( BuildConfiguration . Debug , 7 , 8 , 19 , 20 , 22 , 23 , 24 , 25 , 29 , 30 , 26 , 27 ) ;
73
72
}
74
73
finally
75
74
{
76
75
File . Delete ( path ) ;
77
76
}
78
77
}
79
78
80
- [ Fact ( Skip = "Hang due to System.Console.ReadKey()" ) ]
79
+ [ Fact ]
81
80
public void Switch_DoesNotReturnAttribute_InstrumentsCorrect ( )
82
81
{
83
82
string path = Path . GetTempFileName ( ) ;
@@ -100,16 +99,15 @@ public void Switch_DoesNotReturnAttribute_InstrumentsCorrect()
100
99
CoverageResult result = TestInstrumentationHelper . GetCoverageResult ( path ) ;
101
100
102
101
result . Document ( "Instrumentation.DoesNotReturn.cs" )
103
- . AssertInstrumentLines ( BuildConfiguration . Debug , 7 , 8 , 33 , 34 , 36 , 39 , 40 , 44 , 45 , 49 , 50 , 52 , 53 , 55 , 56 , 58 , 59 , 61 , 62 , 64 , 65 , 68 , 69 )
104
- . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 41 , 42 ) ;
102
+ . AssertInstrumentLines ( BuildConfiguration . Debug , 7 , 8 , 33 , 34 , 36 , 39 , 40 , 44 , 45 , 49 , 50 , 52 , 53 , 55 , 56 , 58 , 59 , 61 , 62 , 64 , 65 , 68 , 69 , 41 , 42 ) ;
105
103
}
106
104
finally
107
105
{
108
106
File . Delete ( path ) ;
109
107
}
110
108
}
111
109
112
- [ Fact ( Skip = "Hang due to System.Console.ReadKey()" ) ]
110
+ [ Fact ]
113
111
public void Subtle_DoesNotReturnAttribute_InstrumentsCorrect ( )
114
112
{
115
113
string path = Path . GetTempFileName ( ) ;
@@ -132,16 +130,15 @@ public void Subtle_DoesNotReturnAttribute_InstrumentsCorrect()
132
130
CoverageResult result = TestInstrumentationHelper . GetCoverageResult ( path ) ;
133
131
134
132
result . Document ( "Instrumentation.DoesNotReturn.cs" )
135
- . AssertInstrumentLines ( BuildConfiguration . Debug , 7 , 8 , 72 , 73 , 75 , 78 , 82 , 83 , 86 , 87 , 91 , 92 , 95 , 101 , 102 , 103 )
136
- . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 79 , 80 , 88 , 96 , 98 , 99 ) ;
133
+ . AssertInstrumentLines ( BuildConfiguration . Debug , 7 , 8 , 72 , 73 , 75 , 78 , 82 , 83 , 86 , 87 , 91 , 92 , 95 , 101 , 102 , 103 , 79 , 80 , 88 , 96 , 98 , 99 ) ;
137
134
}
138
135
finally
139
136
{
140
137
File . Delete ( path ) ;
141
138
}
142
139
}
143
140
144
- [ Fact ( Skip = "Hang due to System.Console.ReadKey()" ) ]
141
+ [ Fact ]
145
142
public void UnreachableBranch_DoesNotReturnAttribute_InstrumentsCorrect ( )
146
143
{
147
144
string path = Path . GetTempFileName ( ) ;
@@ -164,8 +161,7 @@ public void UnreachableBranch_DoesNotReturnAttribute_InstrumentsCorrect()
164
161
CoverageResult result = TestInstrumentationHelper . GetCoverageResult ( path ) ;
165
162
166
163
result . Document ( "Instrumentation.DoesNotReturn.cs" )
167
- . AssertInstrumentLines ( BuildConfiguration . Debug , 7 , 8 , 106 , 107 , 108 )
168
- . AssertNonInstrumentedLines ( BuildConfiguration . Debug , 110 , 111 , 112 , 113 , 114 ) ;
164
+ . AssertInstrumentLines ( BuildConfiguration . Debug , 7 , 8 , 106 , 107 , 108 , 110 , 111 , 112 , 113 , 114 ) ;
169
165
}
170
166
finally
171
167
{
@@ -270,7 +266,7 @@ public void WithLeave_DoesNotReturnAttribute_InstrumentsCorrect()
270
266
}
271
267
272
268
[ Fact ]
273
- public void FiltersAndFinallies_DoesNotReturnAttribute_InstrumentsCorrect ( )
269
+ public void FiltersAndFinally_DoesNotReturnAttribute_InstrumentsCorrect ( )
274
270
{
275
271
string path = Path . GetTempFileName ( ) ;
276
272
try
@@ -279,7 +275,7 @@ public void FiltersAndFinallies_DoesNotReturnAttribute_InstrumentsCorrect()
279
275
{
280
276
CoveragePrepareResult coveragePrepareResult = await TestInstrumentationHelper . Run < DoesNotReturn > ( instance =>
281
277
{
282
- try { instance . FiltersAndFinallies ( ) ; }
278
+ try { instance . FiltersAndFinally ( ) ; }
283
279
catch ( Exception ) { }
284
280
return Task . CompletedTask ;
285
281
0 commit comments