Browse Source

Update TgaFileHeaderTests.cs

pull/2579/head
James Jackson-South 3 years ago
committed by 舰队的偶像-岛风酱!
parent
commit
a811784d34
No known key found for this signature in database GPG Key ID: 71F5B3A2B181950C
  1. 2
      tests/ImageSharp.Tests/Formats/Tga/TgaFileHeaderTests.cs

2
tests/ImageSharp.Tests/Formats/Tga/TgaFileHeaderTests.cs

@ -9,6 +9,8 @@ namespace SixLabors.ImageSharp.Tests.Formats.Tga;
[Trait("Format", "Tga")]
public class TgaFileHeaderTests
{
// TODO: Some of these clash with the ICO magic bytes. Check correctness.
// https://en.wikipedia.org/wiki/Truevision_TGA#Header
[Theory]
[InlineData(new byte[] { 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 0, 195, 0, 32, 8 })] // invalid tga image type.
[InlineData(new byte[] { 0, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 0, 195, 0, 32, 8 })] // invalid colormap type.

Loading…
Cancel
Save