|
|
|
@ -58,11 +58,10 @@ namespace NzbDrone.Common.Test
|
|
|
|
|
|
|
|
|
|
[TestCase(@"C:\", @"C:\")]
|
|
|
|
|
[TestCase(@"C:\\", @"C:\")]
|
|
|
|
|
[TestCase(@"c:\", @"C:\")]
|
|
|
|
|
[TestCase(@"c:\Test", @"C:\Test\\")]
|
|
|
|
|
[TestCase(@"c:\\\\\Test", @"C:\Test\\")]
|
|
|
|
|
[TestCase(@"c:\Test\\\\", @"C:\Test\\")]
|
|
|
|
|
[TestCase(@"c:\Test", @"C:\Test\\")]
|
|
|
|
|
[TestCase(@"C:\Test", @"C:\Test\\")]
|
|
|
|
|
[TestCase(@"C:\\\\\Test", @"C:\Test\\")]
|
|
|
|
|
[TestCase(@"C:\Test\\\\", @"C:\Test\\")]
|
|
|
|
|
[TestCase(@"C:\Test", @"C:\Test\\")]
|
|
|
|
|
[TestCase(@"\\Server\pool", @"\\Server\pool")]
|
|
|
|
|
[TestCase(@"\\Server\pool\", @"\\Server\pool")]
|
|
|
|
|
[TestCase(@"\\Server\pool", @"\\Server\pool\")]
|
|
|
|
@ -73,6 +72,13 @@ namespace NzbDrone.Common.Test
|
|
|
|
|
first.AsOsAgnostic().PathEquals(second.AsOsAgnostic()).Should().BeTrue();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[TestCase(@"c:\", @"C:\")]
|
|
|
|
|
public void should_be_equal_windows_only(string first, string second)
|
|
|
|
|
{
|
|
|
|
|
WindowsOnly();
|
|
|
|
|
first.PathEquals(second.AsOsAgnostic()).Should().BeTrue();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[TestCase(@"C:\Test", @"C:\Test2\")]
|
|
|
|
|
[TestCase(@"C:\Test\Test", @"C:\TestTest\")]
|
|
|
|
|
public void paths_should_not_be_equal(string first, string second)
|
|
|
|
|