Skip to content

Commit 147aea2

Browse files
Add skip for dotnet xunit
1 parent 586f2dc commit 147aea2

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ public void BmpDecoder_CanDecode_MiscellaneousBitmaps_WithLimitedAllocatorBuffer
5959
TestImageProvider<TPixel> provider)
6060
where TPixel : unmanaged, IPixel<TPixel>
6161
{
62+
// dotnet xunit doesn't respect filter.
63+
if (TestEnvironment.IsFramework)
64+
{
65+
return;
66+
}
67+
6268
static void RunTest(string providerDump, string nonContiguousBuffersStr)
6369
{
6470
TestImageProvider<TPixel> provider = BasicSerializer.Deserialize<TestImageProvider<TPixel>>(providerDump);

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ public void GifDecoder_DegenerateMemoryRequest_ShouldTranslateTo_ImageFormatExce
202202
public void GifDecoder_CanDecode_WithLimitedAllocatorBufferCapacity<TPixel>(TestImageProvider<TPixel> provider)
203203
where TPixel : unmanaged, IPixel<TPixel>
204204
{
205+
// dotnet xunit doesn't respect filter.
206+
if (TestEnvironment.IsFramework)
207+
{
208+
return;
209+
}
210+
205211
static void RunTest(string providerDump, string nonContiguousBuffersStr)
206212
{
207213
TestImageProvider<TPixel> provider = BasicSerializer.Deserialize<TestImageProvider<TPixel>>(providerDump);

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ public void DecodeProgressiveJpeg<TPixel>(TestImageProvider<TPixel> provider)
3434
public void DecodeProgressiveJpeg_WithLimitedAllocatorBufferCapacity<TPixel>(TestImageProvider<TPixel> provider)
3535
where TPixel : unmanaged, IPixel<TPixel>
3636
{
37+
// dotnet xunit doesn't respect filter.
38+
if (TestEnvironment.IsFramework)
39+
{
40+
return;
41+
}
42+
3743
static void RunTest(string providerDump, string nonContiguousBuffersStr)
3844
{
3945
TestImageProvider<TPixel> provider =

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,12 @@ public void Issue410_MalformedApplePng<TPixel>(TestImageProvider<TPixel> provide
396396
public void PngDecoder_DegenerateMemoryRequest_ShouldTranslateTo_ImageFormatException<TPixel>(TestImageProvider<TPixel> provider)
397397
where TPixel : unmanaged, IPixel<TPixel>
398398
{
399+
// dotnet xunit doesn't respect filter.
400+
if (TestEnvironment.IsFramework)
401+
{
402+
return;
403+
}
404+
399405
provider.LimitAllocatorBufferCapacity().InPixelsSqrt(10);
400406
InvalidImageContentException ex = Assert.Throws<InvalidImageContentException>(() => provider.GetImage(PngDecoder));
401407
Assert.IsType<InvalidMemoryOperationException>(ex.InnerException);
@@ -408,6 +414,12 @@ public void PngDecoder_DegenerateMemoryRequest_ShouldTranslateTo_ImageFormatExce
408414
public void PngDecoder_CanDecode_WithLimitedAllocatorBufferCapacity<TPixel>(TestImageProvider<TPixel> provider)
409415
where TPixel : unmanaged, IPixel<TPixel>
410416
{
417+
// dotnet xunit doesn't respect filter.
418+
if (TestEnvironment.IsFramework)
419+
{
420+
return;
421+
}
422+
411423
static void RunTest(string providerDump, string nonContiguousBuffersStr)
412424
{
413425
TestImageProvider<TPixel> provider = BasicSerializer.Deserialize<TestImageProvider<TPixel>>(providerDump);

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,12 @@ public void Encode_WorksWithDiscontiguousBuffers<TPixel>(TestImageProvider<TPixe
540540
public void EncodeWorksWithoutSsse3Intrinsics<TPixel>(TestImageProvider<TPixel> provider)
541541
where TPixel : unmanaged, IPixel<TPixel>
542542
{
543+
// dotnet xunit doesn't respect filter.
544+
if (TestEnvironment.IsFramework)
545+
{
546+
return;
547+
}
548+
543549
static void RunTest(string providerDump)
544550
{
545551
TestImageProvider<TPixel> provider =

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,12 @@ public void TgaDecoder_DegenerateMemoryRequest_ShouldTranslateTo_ImageFormatExce
751751
public void TgaDecoder_CanDecode_WithLimitedAllocatorBufferCapacity<TPixel>(TestImageProvider<TPixel> provider)
752752
where TPixel : unmanaged, IPixel<TPixel>
753753
{
754+
// dotnet xunit doesn't respect filter.
755+
if (TestEnvironment.IsFramework)
756+
{
757+
return;
758+
}
759+
754760
static void RunTest(string providerDump, string nonContiguousBuffersStr)
755761
{
756762
TestImageProvider<TPixel> provider = BasicSerializer.Deserialize<TestImageProvider<TPixel>>(providerDump);

0 commit comments

Comments
 (0)