mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 01:57:21 +00:00
Fixed broken tests, cases insensitive for windows only
This commit is contained in:
parent
298bc07be7
commit
8ad447a209
1 changed files with 11 additions and 5 deletions
|
@ -58,11 +58,10 @@ public void Clean_Path_Linux(string dirty, string clean)
|
|||
|
||||
[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 @@ public void paths_should_be_equal(string first, string second)
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue