From 9c720260716ac291fc4d2da8f66ca1f1e9692cf0 Mon Sep 17 00:00:00 2001 From: David Sungaila Date: Sat, 7 Dec 2024 01:42:01 +0100 Subject: [PATCH] Fix TestInitialize --- src/Tests/AntiAliasingTests.cs | 10 ---------- src/Tests/BackgroundColorTests.cs | 10 ---------- src/Tests/FormFillTests.cs | 10 ---------- 3 files changed, 30 deletions(-) diff --git a/src/Tests/AntiAliasingTests.cs b/src/Tests/AntiAliasingTests.cs index 67512c3..764947b 100644 --- a/src/Tests/AntiAliasingTests.cs +++ b/src/Tests/AntiAliasingTests.cs @@ -1,5 +1,4 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; using System.IO; using System.Text; using static PDFtoImage.Conversion; @@ -10,15 +9,6 @@ namespace PDFtoImage.Tests [TestClass] public class AntiAliasingTests : TestBase { - [TestInitialize] - public void Initialize() - { -#if NET6_0_OR_GREATER - if (!OperatingSystem.IsWindows() && !OperatingSystem.IsLinux() && !OperatingSystem.IsMacOS()) - Assert.Inconclusive("This test must run on Windows, Linux or macOS."); -#endif - } - [TestMethod] [DataRow(null, DisplayName = "Default (None)")] [DataRow(PdfAntiAliasing.None, DisplayName = "None")] diff --git a/src/Tests/BackgroundColorTests.cs b/src/Tests/BackgroundColorTests.cs index 2171350..ab4d29e 100644 --- a/src/Tests/BackgroundColorTests.cs +++ b/src/Tests/BackgroundColorTests.cs @@ -1,6 +1,5 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using SkiaSharp; -using System; using System.IO; using static PDFtoImage.Conversion; using static PDFtoImage.Tests.TestUtils; @@ -10,15 +9,6 @@ namespace PDFtoImage.Tests [TestClass] public class BackgroundColorTests : TestBase { - [TestInitialize] - public void Initialize() - { -#if NET6_0_OR_GREATER - if (!OperatingSystem.IsWindows() && !OperatingSystem.IsLinux() && !OperatingSystem.IsMacOS()) - Assert.Inconclusive("This test must run on Windows, Linux or macOS."); -#endif - } - [TestMethod] [DataRow(null, DisplayName = "Default (White)")] [DataRow(0xFFFFFFFF, DisplayName = "White")] diff --git a/src/Tests/FormFillTests.cs b/src/Tests/FormFillTests.cs index 01b926a..952da8c 100644 --- a/src/Tests/FormFillTests.cs +++ b/src/Tests/FormFillTests.cs @@ -1,5 +1,4 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; using System.IO; using static PDFtoImage.Conversion; using static PDFtoImage.Tests.TestUtils; @@ -9,15 +8,6 @@ namespace PDFtoImage.Tests [TestClass] public class FormFillTests : TestBase { - [TestInitialize] - public void Initialize() - { -#if NET6_0_OR_GREATER - if (!OperatingSystem.IsWindows() && !OperatingSystem.IsLinux() && !OperatingSystem.IsMacOS()) - Assert.Inconclusive("This test must run on Windows, Linux or macOS."); -#endif - } - [TestMethod] [DataRow(null, DisplayName = "Default (no form fill)")] [DataRow(true, DisplayName = "Form fill")]