From 38060b0a141d451328746e396eb85deff0a49936 Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Thu, 28 Mar 2024 11:25:20 +0000 Subject: [PATCH] Adjust dir test for unix --- test/Velopack.CommandLine.Tests/OptionMapperTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/Velopack.CommandLine.Tests/OptionMapperTests.cs b/test/Velopack.CommandLine.Tests/OptionMapperTests.cs index f991c272..843d97a9 100644 --- a/test/Velopack.CommandLine.Tests/OptionMapperTests.cs +++ b/test/Velopack.CommandLine.Tests/OptionMapperTests.cs @@ -16,7 +16,11 @@ public class OptionMapperTests [Fact] public void MapDirectory() { - Assert.Equal("C:\\hello", OptionMapper.Map("C:\\hello").FullName); + if (VelopackRuntimeInfo.IsWindows) { + Assert.Equal("C:\\hello", OptionMapper.Map("C:\\hello").FullName); + } else { + Assert.Equal("/hello", OptionMapper.Map("/hello").FullName); + } } [Fact]