mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Adjust dir test for unix
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user