diff --git a/src/tests/VisualStudioProjectLoaderTests.cs b/src/tests/VisualStudioProjectLoaderTests.cs index 4971bd0..091c8fa 100644 --- a/src/tests/VisualStudioProjectLoaderTests.cs +++ b/src/tests/VisualStudioProjectLoaderTests.cs @@ -144,10 +144,10 @@ public void CanLoadVsProject(string resourceName, string[] configs, string assem } } - [TestCase("netcoreapp1.1-minimal.csproj", "Debug", @"bin\Debug\netcoreapp1.1")] - [TestCase("netcoreapp1.1-minimal.csproj", "Release", @"bin\Release\netcoreapp1.1")] - [TestCase("netcoreapp1.1-with-output-path.csproj", "Debug", @"bin\Debug\netcoreapp1.1")] - [TestCase("netcoreapp1.1-with-output-path.csproj", "Release", @"bin\Release\special")] + [TestCase("netcoreapp1.1-minimal.csproj", "Debug", @"bin/Debug/netcoreapp1.1")] + [TestCase("netcoreapp1.1-minimal.csproj", "Release", @"bin/Release/netcoreapp1.1")] + [TestCase("netcoreapp1.1-with-output-path.csproj", "Debug", @"bin/Debug/netcoreapp1.1")] + [TestCase("netcoreapp1.1-with-output-path.csproj", "Release", @"bin/Release/special")] public void PicksUpCorrectOutputPath(string resourceName, string configuration, string expectedOutputPath) { using (TestResource file = new TestResource(resourceName)) @@ -155,7 +155,9 @@ public void PicksUpCorrectOutputPath(string resourceName, string configuration, IProject project = _loader.LoadFrom(file.Path); var package = project.GetTestPackage(configuration); - Assert.That(package.Settings["BasePath"].ToString().EndsWith(expectedOutputPath)); + // adjust for difference between Linux/Win: + var basePath = package.Settings["BasePath"].ToString().Replace('\\', '/'); + Assert.That(basePath.EndsWith(expectedOutputPath)); } }