2
0
Marcin Ziąbek 8 сар өмнө
parent
commit
43de419be0

+ 4 - 0
Source/QuestPDF.ReportSample/Tests.cs

@@ -2,6 +2,7 @@
 using System.Diagnostics;
 using System.Diagnostics;
 using System.IO;
 using System.IO;
 using System.Linq;
 using System.Linq;
+using System.Runtime.InteropServices;
 using System.Threading.Tasks;
 using System.Threading.Tasks;
 using NUnit.Framework;
 using NUnit.Framework;
 using QuestPDF.Drawing;
 using QuestPDF.Drawing;
@@ -66,6 +67,9 @@ namespace QuestPDF.ReportSample
             Report.GenerateImages();
             Report.GenerateImages();
             Report.GenerateSvg();
             Report.GenerateSvg();
 
 
+            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+                Report.GenerateXps();
+
             await Task.Delay(1000);
             await Task.Delay(1000);
             GC.Collect();
             GC.Collect();
             GC.WaitForPendingFinalizers();
             GC.WaitForPendingFinalizers();

+ 3 - 1
Source/QuestPDF.UnitTests/DocumentCompressionTests.cs

@@ -32,7 +32,7 @@ public class DocumentCompressionTests
                             columns.ConstantColumn(100);
                             columns.ConstantColumn(100);
                         });
                         });
 
 
-                        foreach (var y in Enumerable.Range(1, 1_00))
+                        foreach (var y in Enumerable.Range(1, 100))
                         {
                         {
                             foreach (var x in Enumerable.Range(1, 4))
                             foreach (var x in Enumerable.Range(1, 4))
                             {
                             {
@@ -55,6 +55,8 @@ public class DocumentCompressionTests
             });
             });
         });
         });
 
 
+        document.GeneratePdfAndShow();
+        
         // warmup cache
         // warmup cache
         document.GeneratePdf();
         document.GeneratePdf();