Adjust dir test for unix

This commit is contained in:
Caelan Sayler
2024-03-28 11:25:20 +00:00
parent ed00aaefe3
commit 38060b0a14

View File

@@ -16,7 +16,11 @@ public class OptionMapperTests
[Fact]
public void MapDirectory()
{
Assert.Equal("C:\\hello", OptionMapper.Map<DirectoryInfo>("C:\\hello").FullName);
if (VelopackRuntimeInfo.IsWindows) {
Assert.Equal("C:\\hello", OptionMapper.Map<DirectoryInfo>("C:\\hello").FullName);
} else {
Assert.Equal("/hello", OptionMapper.Map<DirectoryInfo>("/hello").FullName);
}
}
[Fact]