@@ -59,11 +59,6 @@ public static Image DebugSave(
59
59
bool appendSourceFileOrDescription = true ,
60
60
IImageEncoder encoder = null )
61
61
{
62
- if ( TestEnvironment . RunsWithCodeCoverage )
63
- {
64
- return image ;
65
- }
66
-
67
62
provider . Utility . SaveTestOutputFile (
68
63
image ,
69
64
extension ,
@@ -112,11 +107,6 @@ public static Image<TPixel> DebugSaveMultiFrame<TPixel>(
112
107
Func < int , int , bool > predicate = null )
113
108
where TPixel : unmanaged, IPixel < TPixel >
114
109
{
115
- if ( TestEnvironment . RunsWithCodeCoverage )
116
- {
117
- return image ;
118
- }
119
-
120
110
provider . Utility . SaveTestOutputFileMultiFrame (
121
111
image ,
122
112
extension ,
@@ -298,24 +288,23 @@ public static Image<TPixel> CompareDebugOutputToReferenceOutputMultiFrame<TPixel
298
288
appendPixelTypeToFileName ,
299
289
predicate : predicate ) ;
300
290
301
- using ( Image < TPixel > debugImage = GetDebugOutputImageMultiFrame < TPixel > (
291
+ using Image < TPixel > debugImage = GetDebugOutputImageMultiFrame < TPixel > (
302
292
provider ,
303
293
image . Frames . Count ,
304
294
testOutputDetails ,
305
295
extension ,
306
296
appendPixelTypeToFileName ,
307
- predicate : predicate ) )
297
+ predicate : predicate ) ;
308
298
309
- using ( Image < TPixel > referenceImage = GetReferenceOutputImageMultiFrame < TPixel > (
299
+ using Image < TPixel > referenceImage = GetReferenceOutputImageMultiFrame < TPixel > (
310
300
provider ,
311
301
image . Frames . Count ,
312
302
testOutputDetails ,
313
303
extension ,
314
304
appendPixelTypeToFileName ,
315
- predicate : predicate ) )
316
- {
317
- comparer . VerifySimilarity ( referenceImage , debugImage ) ;
318
- }
305
+ predicate : predicate ) ;
306
+
307
+ comparer . VerifySimilarity ( referenceImage , debugImage ) ;
319
308
320
309
return image ;
321
310
}
0 commit comments