Skip to content

Commit bfecf40

Browse files
committed
Fixup deprecated test assertions
1 parent 5ba6ee1 commit bfecf40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Pfim.Tests/TargaTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@ public void ParseTargaTopLeft()
231231
seenBlue |= image.Data[i] == 12 && image.Data[i + 1] == 0 && image.Data[i + 2] == 255;
232232
if (image.Data[i] == 255 && image.Data[i + 1] == 4 && image.Data[i + 2] == 4 && !seenBlue)
233233
{
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)");
235235
}
236236

237237
if (!((image.Data[i] == 0 && image.Data[i + 1] == 255 && image.Data[i + 2] == 0) ||
238238
(image.Data[i] == 255 && image.Data[i + 1] == 0 && image.Data[i + 2] == 12) ||
239239
(image.Data[i] == 255 && image.Data[i + 1] == 255 && image.Data[i + 2] == 255) ||
240240
(image.Data[i + 2] == 255 && image.Data[i + 1] == image.Data[i])))
241241
{
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]}");
243243
}
244244
}
245245
}

0 commit comments

Comments
 (0)