From 147aea2448ace014ff669901d653cba0af6eb412 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Wed, 14 Oct 2020 23:50:04 +0100 Subject: [PATCH] Add skip for dotnet xunit --- .../ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs | 6 ++++++ .../ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs | 6 ++++++ .../Formats/Jpg/JpegDecoderTests.Progressive.cs | 6 ++++++ .../ImageSharp.Tests/Formats/Png/PngDecoderTests.cs | 12 ++++++++++++ .../ImageSharp.Tests/Formats/Png/PngEncoderTests.cs | 6 ++++++ .../ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs | 6 ++++++ 6 files changed, 42 insertions(+) diff --git a/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs index e56ffa143..68a3213d3 100644 --- a/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs @@ -59,6 +59,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Bmp TestImageProvider provider) where TPixel : unmanaged, IPixel { + // dotnet xunit doesn't respect filter. + if (TestEnvironment.IsFramework) + { + return; + } + static void RunTest(string providerDump, string nonContiguousBuffersStr) { TestImageProvider provider = BasicSerializer.Deserialize>(providerDump); diff --git a/tests/ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs index 1256520e6..b76ea264c 100644 --- a/tests/ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs @@ -202,6 +202,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Gif public void GifDecoder_CanDecode_WithLimitedAllocatorBufferCapacity(TestImageProvider provider) where TPixel : unmanaged, IPixel { + // dotnet xunit doesn't respect filter. + if (TestEnvironment.IsFramework) + { + return; + } + static void RunTest(string providerDump, string nonContiguousBuffersStr) { TestImageProvider provider = BasicSerializer.Deserialize>(providerDump); diff --git a/tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Progressive.cs b/tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Progressive.cs index 5bf80580e..1edbe5ba9 100644 --- a/tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Progressive.cs +++ b/tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Progressive.cs @@ -34,6 +34,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg public void DecodeProgressiveJpeg_WithLimitedAllocatorBufferCapacity(TestImageProvider provider) where TPixel : unmanaged, IPixel { + // dotnet xunit doesn't respect filter. + if (TestEnvironment.IsFramework) + { + return; + } + static void RunTest(string providerDump, string nonContiguousBuffersStr) { TestImageProvider provider = diff --git a/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs index 80ca74719..851115478 100644 --- a/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs @@ -396,6 +396,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png public void PngDecoder_DegenerateMemoryRequest_ShouldTranslateTo_ImageFormatException(TestImageProvider provider) where TPixel : unmanaged, IPixel { + // dotnet xunit doesn't respect filter. + if (TestEnvironment.IsFramework) + { + return; + } + provider.LimitAllocatorBufferCapacity().InPixelsSqrt(10); InvalidImageContentException ex = Assert.Throws(() => provider.GetImage(PngDecoder)); Assert.IsType(ex.InnerException); @@ -408,6 +414,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png public void PngDecoder_CanDecode_WithLimitedAllocatorBufferCapacity(TestImageProvider provider) where TPixel : unmanaged, IPixel { + // dotnet xunit doesn't respect filter. + if (TestEnvironment.IsFramework) + { + return; + } + static void RunTest(string providerDump, string nonContiguousBuffersStr) { TestImageProvider provider = BasicSerializer.Deserialize>(providerDump); diff --git a/tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs b/tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs index 47419d47b..8c4f17f02 100644 --- a/tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs @@ -540,6 +540,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png public void EncodeWorksWithoutSsse3Intrinsics(TestImageProvider provider) where TPixel : unmanaged, IPixel { + // dotnet xunit doesn't respect filter. + if (TestEnvironment.IsFramework) + { + return; + } + static void RunTest(string providerDump) { TestImageProvider provider = diff --git a/tests/ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs index 7514823fe..8fff47719 100644 --- a/tests/ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs @@ -751,6 +751,12 @@ namespace SixLabors.ImageSharp.Tests.Formats.Tga public void TgaDecoder_CanDecode_WithLimitedAllocatorBufferCapacity(TestImageProvider provider) where TPixel : unmanaged, IPixel { + // dotnet xunit doesn't respect filter. + if (TestEnvironment.IsFramework) + { + return; + } + static void RunTest(string providerDump, string nonContiguousBuffersStr) { TestImageProvider provider = BasicSerializer.Deserialize>(providerDump);