Skip to content

Commit 02612b3

Browse files
committed
fix tests on unix
1 parent 0b29e90 commit 02612b3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

FastCloner.Tests/SpecialCaseTests.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2964,6 +2964,12 @@ public void NonGenericDictionaryWithOptionalConstructor_ShouldDeepClone()
29642964
[Test]
29652965
public void Drawing_Image_DeepClone_Test()
29662966
{
2967+
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
2968+
{
2969+
Assert.Pass("Windows exclusive");
2970+
return;
2971+
}
2972+
29672973
// Arrange
29682974
Image original = new Bitmap(10, 10);
29692975

@@ -2982,6 +2988,12 @@ public void Drawing_Image_DeepClone_Test()
29822988
[Test]
29832989
public void Drawing_Icon_DeepClone_Test()
29842990
{
2991+
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
2992+
{
2993+
Assert.Pass("Windows exclusive");
2994+
return;
2995+
}
2996+
29852997
// Arrange
29862998
using Bitmap bitmap = new Bitmap(16, 16);
29872999
using Graphics g = Graphics.FromImage(bitmap);
@@ -3004,6 +3016,12 @@ public void Drawing_Icon_DeepClone_Test()
30043016
[Test]
30053017
public void Drawing_Brush_DeepClone_Test()
30063018
{
3019+
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
3020+
{
3021+
Assert.Pass("Windows exclusive");
3022+
return;
3023+
}
3024+
30073025
// Arrange
30083026
SolidBrush original = new SolidBrush(Color.Red);
30093027

0 commit comments

Comments
 (0)