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:
parent
82ff6397f5
commit
23a44f192f
1 changed files with 2 additions and 1 deletions
|
@ -253,9 +253,10 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
||||||
public void It_migrates_unqualified_dependencies_as_ProjectReference_when_a_matching_project_is_found()
|
public void It_migrates_unqualified_dependencies_as_ProjectReference_when_a_matching_project_is_found()
|
||||||
{
|
{
|
||||||
var mockProj = MigrateProject("TestAppWithUnqualifiedDependencies", "ProjectA");
|
var mockProj = MigrateProject("TestAppWithUnqualifiedDependencies", "ProjectA");
|
||||||
|
var projectReferenceInclude = Path.Combine("..", "ProjectB", "ProjectB.csproj");
|
||||||
|
|
||||||
var projectReferences = mockProj.Items.Should().ContainSingle(
|
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)
|
private ProjectRootElement MigrateProject(string solution, string project)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue