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:
parent
7a2c6ad086
commit
89f0b05958
45 changed files with 690 additions and 65 deletions
|
@ -59,7 +59,7 @@ namespace Microsoft.DotNet.Tools.Remove.ProjectFromSolution
|
|||
|
||||
private bool RemoveProject(SlnFile slnFile, string projectPath)
|
||||
{
|
||||
var projectPathNormalized = PathUtility.GetPathWithBackSlashes(projectPath);
|
||||
var projectPathNormalized = PathUtility.GetPathWithDirectorySeparator(projectPath);
|
||||
|
||||
var projectsToRemove = slnFile.Projects.Where((p) =>
|
||||
string.Equals(p.FilePath, projectPathNormalized, StringComparison.OrdinalIgnoreCase)).ToList();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue