Browse Source

no BMP assertions on linux

af/merge-core
Anton Firszov 8 years ago
parent
commit
065a8b831c
  1. 8
      tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs
  2. 1
      tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs

8
tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs

@ -30,7 +30,11 @@ namespace SixLabors.ImageSharp.Tests
using (Image<TPixel> image = provider.GetImage(new BmpDecoder()))
{
image.DebugSave(provider, "bmp");
image.CompareToOriginal(provider);
if (TestEnvironment.IsWindows)
{
image.CompareToOriginal(provider);
}
}
}
@ -52,7 +56,7 @@ namespace SixLabors.ImageSharp.Tests
[InlineData(NegHeight, 24)]
[InlineData(Bit8, 8)]
[InlineData(Bit8Inverted, 8)]
public void DetectPixelSize(string imagePath, int expectedPixelSize)
public void Identify(string imagePath, int expectedPixelSize)
{
var testFile = TestFile.Create(imagePath);
using (var stream = new MemoryStream(testFile.Bytes, false))

1
tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs

@ -244,7 +244,6 @@ namespace SixLabors.ImageSharp.Tests
public static string[] AllBmpFiles =
{
TestImages.Bmp.F,
TestImages.Bmp.CoreHeader,
TestImages.Bmp.Bit8
};

Loading…
Cancel
Save