|
|
@ -185,6 +185,15 @@ namespace NzbDrone.Common.Test
|
|
|
|
osPath.FullPath.Should().Be(@"/just/a/test/to/verify the/slashes/");
|
|
|
|
osPath.FullPath.Should().Be(@"/just/a/test/to/verify the/slashes/");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void should_fix_double_slashes_unix()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var osPath = new OsPath(@"/just/a//test////to/verify the/slashes/");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
osPath.Kind.Should().Be(OsPathKind.Unix);
|
|
|
|
|
|
|
|
osPath.FullPath.Should().Be(@"/just/a/test/to/verify the/slashes/");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void should_combine_mixed_slashes()
|
|
|
|
public void should_combine_mixed_slashes()
|
|
|
|
{
|
|
|
|
{
|
|
|
|