Fixing the test on windows. We need to use path.combine because of the forward/backward slashes for directory separation.

This commit is contained in:
Livar Cunha 2016-11-01 14:58:11 -07:00
parent 82ff6397f5
commit 23a44f192f

View file

@ -253,9 +253,10 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
public void It_migrates_unqualified_dependencies_as_ProjectReference_when_a_matching_project_is_found()
{
var mockProj = MigrateProject("TestAppWithUnqualifiedDependencies", "ProjectA");
var projectReferenceInclude = Path.Combine("..", "ProjectB", "ProjectB.csproj");
var projectReferences = mockProj.Items.Should().ContainSingle(
item => item.ItemType == "ProjectReference" && item.Include == "../ProjectB/ProjectB.csproj");
item => item.ItemType == "ProjectReference" && item.Include == projectReferenceInclude);
}
private ProjectRootElement MigrateProject(string solution, string project)