From 7580f87029ac9f778ec632c7ccaed489d7ca1364 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 8 Sep 2020 18:12:57 -0400 Subject: rename PathUtilities.NormalizePathSeparator, add normalization for more cases --- src/SMAPI.Tests/Utilities/PathUtilitiesTests.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/SMAPI.Tests/Utilities') diff --git a/src/SMAPI.Tests/Utilities/PathUtilitiesTests.cs b/src/SMAPI.Tests/Utilities/PathUtilitiesTests.cs index ea69a9ea..b5494003 100644 --- a/src/SMAPI.Tests/Utilities/PathUtilitiesTests.cs +++ b/src/SMAPI.Tests/Utilities/PathUtilitiesTests.cs @@ -179,10 +179,10 @@ namespace SMAPI.Tests.Utilities ****/ [Test(Description = "Assert that PathUtilities.NormalizePathSeparators normalizes paths correctly.")] [TestCaseSource(nameof(PathUtilitiesTests.SamplePaths))] - public void NormalizePathSeparators(SamplePath path) + public void NormalizePath(SamplePath path) { // act - string normalized = PathUtilities.NormalizePathSeparators(path.OriginalPath); + string normalized = PathUtilities.NormalizePath(path.OriginalPath); // assert #if SMAPI_FOR_WINDOWS @@ -217,11 +217,6 @@ namespace SMAPI.Tests.Utilities @"\\parent\unc\path\to\child", ExpectedResult = @"path\to\child" )] - [TestCase( - @"\\parent\unc", - @"\\adjacent\unc", - ExpectedResult = @"\\adjacent\unc" - )] [TestCase( @"C:\same\path", @"C:\same\path", -- cgit