File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -231,15 +231,15 @@ public void ParseTargaTopLeft()
231
231
seenBlue |= image . Data [ i ] == 12 && image . Data [ i + 1 ] == 0 && image . Data [ i + 2 ] == 255 ;
232
232
if ( image . Data [ i ] == 255 && image . Data [ i + 1 ] == 4 && image . Data [ i + 2 ] == 4 && ! seenBlue )
233
233
{
234
- Assert . True ( false , "Expected to see blue before red (this could mean that the color channels are swapped)" ) ;
234
+ Assert . Fail ( "Expected to see blue before red (this could mean that the color channels are swapped)" ) ;
235
235
}
236
236
237
237
if ( ! ( ( image . Data [ i ] == 0 && image . Data [ i + 1 ] == 255 && image . Data [ i + 2 ] == 0 ) ||
238
238
( image . Data [ i ] == 255 && image . Data [ i + 1 ] == 0 && image . Data [ i + 2 ] == 12 ) ||
239
239
( image . Data [ i ] == 255 && image . Data [ i + 1 ] == 255 && image . Data [ i + 2 ] == 255 ) ||
240
240
( image . Data [ i + 2 ] == 255 && image . Data [ i + 1 ] == image . Data [ i ] ) ) )
241
241
{
242
- Assert . True ( false , $ "Did not expect pixel { image . Data [ i ] } { image . Data [ i + 1 ] } { image . Data [ i + 2 ] } ") ;
242
+ Assert . Fail ( $ "Did not expect pixel { image . Data [ i ] } { image . Data [ i + 1 ] } { image . Data [ i + 2 ] } ") ;
243
243
}
244
244
}
245
245
}
You can’t perform that action at this time.
0 commit comments