dotnet-installer/test/Microsoft.DotNet.Cli.Utils.Tests
Peter Huene 03f0c51292 Fix relative path handling on Windows.
On Windows, `PathUtility.GetRelativePath` was not properly handling
paths that differed by case in the drive reference (e.g. "C:\" vs.
"c:\").  The fix was to add the missing case-insensitive comparison
argument.

Replaced uses of `PathUtility.GetRelativePath` with
`Path.GetRelativePath` where possible (requires 2.0.0+).

Additionally, `PathUtility.RemoveExtraPathSeparators` was not handling
paths with drive references on Windows.  If the path contained a drive
reference, the separator between the drive reference and the first part
of the path was removed.  This is due to `Path.Combine` not handling
this case, so an explicit concatenation of the separator was added.

This commit resolves issue #7699.
2017-10-24 11:23:52 -07:00
..
BlockingMemoryStreamTests.cs Invoke compile-csc in-proc 2016-04-16 00:28:57 -05:00
BuiltInCommandTests.cs Fix BuiltInCommandTests. 2016-05-10 18:46:47 -05:00
CommandResolverTestUtils.cs PR Feedback and nearly full test coverage for resolvers 2016-03-07 14:45:16 -08:00
GivenACompositeCommandResolver.cs Replaces references to Microsoft.Extensions.PlatformAbstractions with Microsoft.Extensions.PlatformAbstractions.Internal 2016-04-29 16:06:23 -07:00
GivenADefaultCommandResolver.cs Making ProjectDependenciesCommandResolver handle msbuild projects as well by using the ProjectFactory and IProject. 2016-10-14 12:56:18 -07:00
GivenAnAppBaseCommandResolver.cs Updating the xunit version to one that does not depend on internalabstractions. 2016-08-10 13:40:13 -07:00
GivenAppThrowingException.cs Fix tests that require .NET Core 1.1 2017-04-27 15:48:48 -07:00
GivenAProjectDependenciesCommandFactory.cs Update tool tests to target netcoreapp2.1 2017-08-18 18:07:14 -07:00
GivenAProjectDependencyCommandResolver.cs Update tool tests to target netcoreapp2.1 2017-08-18 18:07:14 -07:00
GivenAProjectPathCommandResolver.cs Updating the xunit version to one that does not depend on internalabstractions. 2016-08-10 13:40:13 -07:00
GivenAProjectToolsCommandResolver.cs Use temporary path for fake deps.json in test 2017-10-06 10:53:21 -07:00
GivenARootedCommandResolver.cs Replaces references to Microsoft.Extensions.PlatformAbstractions with Microsoft.Extensions.PlatformAbstractions.Internal 2016-04-29 16:06:23 -07:00
GivenAScriptCommandResolver.cs Replaces references to Microsoft.Extensions.PlatformAbstractions with Microsoft.Extensions.PlatformAbstractions.Internal 2016-04-29 16:06:23 -07:00
GivenThatWeWantToReadLockFilesQuickly.cs Make Microsoft.Dotnet.Cli.Utils.Tests pass on localized setup 2017-06-12 18:32:07 -07:00
Microsoft.DotNet.Cli.Utils.Tests.csproj Merge upstream changes 2017-08-28 11:09:19 -07:00
PathUtilityTests.cs Fix relative path handling on Windows. 2017-10-24 11:23:52 -07:00
StreamForwarderTests.cs Clean up dead code 2017-03-20 12:23:23 -05:00