Skip to content

Commit

Permalink
configuring windows only tests to only run on windows platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
JJBussert committed Nov 20, 2021
1 parent dde15e5 commit 7bd97a6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using E13.Common.Nunit.Extensions;
using FluentAssertions;
using NUnit.Framework;
using NUnit.Framework.Internal;
using System;
using System.Collections.Generic;
using System.Diagnostics;
Expand All @@ -22,6 +23,7 @@ public class BitmapExtensionsTests

[Test]
[SupportedOSPlatform("windows")]
[Platform(Include = "Win")]
public void Compare_SameImage_NullResult()
{
Console.WriteLine(CWD);
Expand All @@ -37,6 +39,7 @@ public void Compare_SameImage_NullResult()

[Test]
[SupportedOSPlatform("windows")]
[Platform(Include = "Win")]
public void Compare_DifferentImages_GenerateExpected()
{
var tempPath = Path.Combine(CWD, Extensions, BitmapExtensionsFiles, $"{nameof(Compare_DifferentImages_GenerateExpected)}.jpg");
Expand All @@ -55,6 +58,7 @@ public void Compare_DifferentImages_GenerateExpected()

[Test]
[SupportedOSPlatform("windows")]
[Platform(Include = "Win")]
public void IsIdentical_SameImage_True()
{
using var imageA1 = new Bitmap(ImageA);
Expand All @@ -66,6 +70,7 @@ public void IsIdentical_SameImage_True()

[Test]
[SupportedOSPlatform("windows")]
[Platform(Include = "Win")]
public void IsIdentical_SameImage_False()
{
using var imageA = new Bitmap(ImageA);
Expand Down

0 comments on commit 7bd97a6

Please sign in to comment.