@ -52,7 +52,7 @@ namespace NzbDrone.Common.Test
[TestCase(@"//CAPITAL//lower// ", @"/CAPITAL/lower")]
public void Clean_Path_Linux ( string dirty , string clean )
{
Mono Only( ) ;
Posix Only( ) ;
var result = dirty . CleanFilePath ( ) ;
result . Should ( ) . Be ( clean ) ;
@ -152,14 +152,14 @@ namespace NzbDrone.Common.Test
[TestCase(@"/test", "/")]
public void path_should_return_parent_mono ( string path , string parentPath )
{
Mono Only( ) ;
Posix Only( ) ;
path . GetParentPath ( ) . Should ( ) . Be ( parentPath ) ;
}
[Test]
public void path_should_return_parent_for_oversized_path ( )
{
Mono Only( ) ;
Posix Only( ) ;
// This test will fail on Windows if long path support is not enabled: https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/
// It will also fail if the app isn't configured to use long path (such as resharper): https://blogs.msdn.microsoft.com/jeremykuhne/2016/07/30/net-4-6-2-and-long-paths-on-windows-10/
@ -232,7 +232,7 @@ namespace NzbDrone.Common.Test
[Test]
public void get_actual_casing_should_return_original_value_in_linux ( )
{
Mono Only( ) ;
Posix Only( ) ;
var path = Directory . GetCurrentDirectory ( ) ;
path . GetActualCasing ( ) . Should ( ) . Be ( path ) ;
path . GetActualCasing ( ) . Should ( ) . Be ( path ) ;
@ -306,7 +306,7 @@ namespace NzbDrone.Common.Test
[Test]
public void GetAncestorFolders_should_return_all_ancestors_in_path_Linux ( )
{
Mono Only( ) ;
Posix Only( ) ;
var path = @"/Test/TV/Series Title" ;
var result = path . GetAncestorFolders ( ) ;