Fixing new test to work crossplat by calculating path with Path.Combine

This commit is contained in:
Livar Cunha 2017-01-31 18:53:18 -08:00
parent 6a72ec603e
commit 49ae86d09f

View file

@ -320,7 +320,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
var projectReferences = mockProj.Items.Where(
item => item.ItemType.Equals("ProjectReference", StringComparison.Ordinal));
projectReferences.Should().ContainSingle();
projectReferences.Single().Include.Should().Be("../src/ProjectA/ProjectA.csproj");
projectReferences.Single().Include.Should().Be(Path.Combine("..", "src", "ProjectA", "ProjectA.csproj"));
}
private ProjectRootElement MigrateProject(string solution, string project)