Added DiskProvider.PathEquals for UNC paths.

This commit is contained in:
kay.one 2012-01-19 21:50:05 -08:00
parent 7483d5d3a5
commit 3d214f0f0b
1 changed files with 5 additions and 0 deletions

View File

@ -134,6 +134,11 @@ namespace NzbDrone.Common.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\")]
[TestCase(@"\\Server\pool\", @"\\Server\pool\")]
[TestCase(@"\\smallcheese\DRIVE_G\TV-C\Simspsons", @"\\smallcheese\DRIVE_G\TV-C\Simspsons")]
public void paths_should_be_equeal(string first, string second) public void paths_should_be_equeal(string first, string second)
{ {
DiskProvider.PathEquals(first, second).Should().BeTrue(); DiskProvider.PathEquals(first, second).Should().BeTrue();