From 05fedb9afec7296f28baa75b7332297c131fc62b Mon Sep 17 00:00:00 2001 From: Ben Rog-Wilhelm Date: Fri, 24 Apr 2026 15:55:46 -0500 Subject: [PATCH] Fix: C# tests don't run on Linux. --- CSharp/Tests/Tests1/Tests/TestLines.cs | 2 +- CSharp/Tests/Tests1/Tests/TestPolygons.cs | 2 +- CSharp/Tests/Tests1/Tests/TestPolytree.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CSharp/Tests/Tests1/Tests/TestLines.cs b/CSharp/Tests/Tests1/Tests/TestLines.cs index e26e27f2b..78cf4b26e 100644 --- a/CSharp/Tests/Tests1/Tests/TestLines.cs +++ b/CSharp/Tests/Tests1/Tests/TestLines.cs @@ -16,7 +16,7 @@ public void TestOpenPaths() Paths64 subj = new(), subj_open = new(), clip = new(); Paths64 solution = new(), solution_open = new(); - Assert.IsTrue(ClipperFileIO.LoadTestNum("..\\..\\..\\..\\..\\..\\Tests\\Lines.txt", + Assert.IsTrue(ClipperFileIO.LoadTestNum("../../../../../../Tests/Lines.txt", i, subj, subj_open, clip, out ClipType clipType, out FillRule fillrule, out long area, out int count, out _), string.Format("Loading test {0} failed.", i)); diff --git a/CSharp/Tests/Tests1/Tests/TestPolygons.cs b/CSharp/Tests/Tests1/Tests/TestPolygons.cs index 2a0a3535b..8773a2404 100644 --- a/CSharp/Tests/Tests1/Tests/TestPolygons.cs +++ b/CSharp/Tests/Tests1/Tests/TestPolygons.cs @@ -24,7 +24,7 @@ public void TestClosedPaths() Paths64 subj = new(), subj_open = new (), clip = new(); Paths64 solution = new(), solution_open = new(); - if (!ClipperFileIO.LoadTestNum("..\\..\\..\\..\\..\\..\\Tests\\Polygons.txt", + if (!ClipperFileIO.LoadTestNum("../../../../../../Tests/Polygons.txt", testNum, subj, subj_open, clip, out ClipType clipType, out FillRule fillrule, out long storedArea, out int storedCount, out _)) { diff --git a/CSharp/Tests/Tests1/Tests/TestPolytree.cs b/CSharp/Tests/Tests1/Tests/TestPolytree.cs index 0301cfeb9..a469114cc 100644 --- a/CSharp/Tests/Tests1/Tests/TestPolytree.cs +++ b/CSharp/Tests/Tests1/Tests/TestPolytree.cs @@ -61,7 +61,7 @@ public void TestPolytree2() { Paths64 subject = new(), subjectOpen = new(), clip = new(); - Assert.IsTrue(ClipperFileIO.LoadTestNum("..\\..\\..\\..\\..\\..\\Tests\\PolytreeHoleOwner2.txt", + Assert.IsTrue(ClipperFileIO.LoadTestNum("../../../../../../Tests/PolytreeHoleOwner2.txt", 1, subject, subjectOpen, clip, out ClipType cliptype, out FillRule fillrule, out _, out _, out _), "Unable to read PolytreeHoleOwner2.txt");