From 3d214f0f0bf8beba1d895b80722fc7f785d6fae2 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Thu, 19 Jan 2012 21:50:05 -0800 Subject: [PATCH] Added DiskProvider.PathEquals for UNC paths. --- NzbDrone.Common.Test/DiskProviderFixture.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NzbDrone.Common.Test/DiskProviderFixture.cs b/NzbDrone.Common.Test/DiskProviderFixture.cs index 58b4fd6b5..e604f20cb 100644 --- a/NzbDrone.Common.Test/DiskProviderFixture.cs +++ b/NzbDrone.Common.Test/DiskProviderFixture.cs @@ -134,6 +134,11 @@ namespace NzbDrone.Common.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) { DiskProvider.PathEquals(first, second).Should().BeTrue();