Improve sln migration tests (#5066)

* WIP Improve sln migration tests

* Simple migration test

* Improve the test

* WIP update test assets

* Update test

* Test a bug fix

* Add another migrate sln test

* Fix FilePath related tests

* Finish the migrate sln tests

* Fix tests

* Fix another path issue
This commit is contained in:
Justin Goshi 2016-12-20 13:04:01 -10:00 committed by GitHub
parent 7a2c6ad086
commit 89f0b05958
45 changed files with 690 additions and 65 deletions

View file

@ -62,7 +62,7 @@ namespace Microsoft.DotNet.Tools.Add.ProjectToSolution
private void AddProject(SlnFile slnFile, string projectPath)
{
var projectPathNormalized = PathUtility.GetPathWithBackSlashes(projectPath);
var projectPathNormalized = PathUtility.GetPathWithDirectorySeparator(projectPath);
if (slnFile.Projects.Any((p) =>
string.Equals(p.FilePath, projectPathNormalized, StringComparison.OrdinalIgnoreCase)))