mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
case insensitive match for unmapped folders.
This commit is contained in:
@@ -127,29 +127,7 @@ namespace NzbDrone.Common.Test.DiskProviderTests
|
||||
}
|
||||
|
||||
|
||||
[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(@"\\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_equal(string first, string second)
|
||||
{
|
||||
DiskProvider.PathEquals(first.AsOsAgnostic(), 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)
|
||||
{
|
||||
DiskProvider.PathEquals(first.AsOsAgnostic(), second.AsOsAgnostic()).Should().BeFalse();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void empty_folder_should_return_folder_modified_date()
|
||||
|
||||
Reference in New Issue
Block a user