Skip to content

Commit cebd164

Browse files
authored
Merge pull request #87 from bernd5/fix_unittest_test_path
fix test path
2 parents 3b77c0e + 9ee2f67 commit cebd164

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

UnitTests/BaseTestRoot.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ public BaseTestRoot() {
1414
path = Environment.GetEnvironmentVariable("CSHARP_XMLRESOLVER_ROOT");
1515
if (string.IsNullOrEmpty(path))
1616
{
17-
path = "/tmp"; // It won't work, but it's somewhere...
17+
//the path is for example C:\work\xmlresolvercs\UnitTests\bin\Debug\net8.0
18+
path = Path.GetFullPath("./../../../..");
19+
if (!Directory.Exists(path))
20+
{
21+
path = "/tmp"; // It won't work, but it's somewhere...
22+
}
1823
}
1924
}
2025

0 commit comments

Comments
 (0)