Browse Source

Ignore DocumentOperationTests on Linux Musl due to unsupported functionality

Marcin Ziąbek 7 months ago
parent
commit
c72ab0ad66

+ 0 - 6
Source/QuestPDF.UnitTests/DocumentCompressionTests.cs

@@ -11,12 +11,6 @@ namespace QuestPDF.UnitTests;
 
 public class DocumentCompressionTests
 {
-    public DocumentCompressionTests()
-    {
-        if (RuntimeInformation.RuntimeIdentifier == "linux-musl-x64")
-            Assert.Ignore("The DocumentOperations functionality is not supported on Linux Musl, e.g. Alpine.");
-    }
-    
     [Test]
     public void Test()
     {

+ 7 - 0
Source/QuestPDF.UnitTests/DocumentOperationTests.cs

@@ -1,5 +1,6 @@
 using System;
 using System.Linq;
+using System.Runtime.InteropServices;
 using NUnit.Framework;
 using QuestPDF.Fluent;
 using QuestPDF.Helpers;
@@ -13,6 +14,12 @@ namespace QuestPDF.UnitTests;
 /// </summary>
 public class DocumentOperationTests
 {
+    public DocumentOperationTests()
+    {
+        if (RuntimeInformation.RuntimeIdentifier == "linux-musl-x64")
+            Assert.Ignore("The DocumentOperations functionality is not supported on Linux Musl, e.g. Alpine.");
+    }
+    
     [Test]
     public void TakePages()
     {