8 references to NeedCorrection
Microsoft.DotNet.Cli.Utils (1)
DotDefaultPathCorrector.cs (1)
19if (NeedCorrection(dotDefaultPath, out var correctedPath))
Microsoft.DotNet.Cli.Utils.Tests (7)
DotDefaultPathCorrectorTests.cs (7)
12DotDefaultPathCorrector.NeedCorrection(existingPath, out string correctPath).Should().BeTrue(); 20DotDefaultPathCorrector.NeedCorrection(existingPath, out string _).Should().BeFalse(); 27DotDefaultPathCorrector.NeedCorrection(existingPath, out string _).Should().BeFalse(); 35DotDefaultPathCorrector.NeedCorrection(existingPath, out string correctPath).Should().BeTrue(); 44DotDefaultPathCorrector.NeedCorrection(existingPath, out string correctPath).Should().BeTrue(); 52DotDefaultPathCorrector.NeedCorrection(existingPath, out string _).Should().BeFalse(); 59DotDefaultPathCorrector.NeedCorrection(existingPath, out string correctPath).Should().BeTrue();