Browse Source

Add skip for dotnet xunit

js/color-alpha-handling
James Jackson-South 5 years ago
parent
commit
147aea2448
  1. 6
      tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs
  2. 6
      tests/ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs
  3. 6
      tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Progressive.cs
  4. 12
      tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs
  5. 6
      tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs
  6. 6
      tests/ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs

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

@ -59,6 +59,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Bmp
TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
// dotnet xunit doesn't respect filter.
if (TestEnvironment.IsFramework)
{
return;
}
static void RunTest(string providerDump, string nonContiguousBuffersStr)
{
TestImageProvider<TPixel> provider = BasicSerializer.Deserialize<TestImageProvider<TPixel>>(providerDump);

6
tests/ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs

@ -202,6 +202,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Gif
public void GifDecoder_CanDecode_WithLimitedAllocatorBufferCapacity<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
// dotnet xunit doesn't respect filter.
if (TestEnvironment.IsFramework)
{
return;
}
static void RunTest(string providerDump, string nonContiguousBuffersStr)
{
TestImageProvider<TPixel> provider = BasicSerializer.Deserialize<TestImageProvider<TPixel>>(providerDump);

6
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Progressive.cs

@ -34,6 +34,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
public void DecodeProgressiveJpeg_WithLimitedAllocatorBufferCapacity<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
// dotnet xunit doesn't respect filter.
if (TestEnvironment.IsFramework)
{
return;
}
static void RunTest(string providerDump, string nonContiguousBuffersStr)
{
TestImageProvider<TPixel> provider =

12
tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs

@ -396,6 +396,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png
public void PngDecoder_DegenerateMemoryRequest_ShouldTranslateTo_ImageFormatException<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
// dotnet xunit doesn't respect filter.
if (TestEnvironment.IsFramework)
{
return;
}
provider.LimitAllocatorBufferCapacity().InPixelsSqrt(10);
InvalidImageContentException ex = Assert.Throws<InvalidImageContentException>(() => provider.GetImage(PngDecoder));
Assert.IsType<InvalidMemoryOperationException>(ex.InnerException);
@ -408,6 +414,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png
public void PngDecoder_CanDecode_WithLimitedAllocatorBufferCapacity<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
// dotnet xunit doesn't respect filter.
if (TestEnvironment.IsFramework)
{
return;
}
static void RunTest(string providerDump, string nonContiguousBuffersStr)
{
TestImageProvider<TPixel> provider = BasicSerializer.Deserialize<TestImageProvider<TPixel>>(providerDump);

6
tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs

@ -540,6 +540,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png
public void EncodeWorksWithoutSsse3Intrinsics<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
// dotnet xunit doesn't respect filter.
if (TestEnvironment.IsFramework)
{
return;
}
static void RunTest(string providerDump)
{
TestImageProvider<TPixel> provider =

6
tests/ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs

@ -751,6 +751,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Tga
public void TgaDecoder_CanDecode_WithLimitedAllocatorBufferCapacity<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
// dotnet xunit doesn't respect filter.
if (TestEnvironment.IsFramework)
{
return;
}
static void RunTest(string providerDump, string nonContiguousBuffersStr)
{
TestImageProvider<TPixel> provider = BasicSerializer.Deserialize<TestImageProvider<TPixel>>(providerDump);

Loading…
Cancel
Save