mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-28 23:07:13 -04:00
ae63b85753
(cherry picked from commit 0321368cc392d7a0a488409bf6bd586ba45497af) (cherry picked from commit 033936dce7e13c8ab2e38407782dc9cdd949460e)
27 lines
770 B
C#
27 lines
770 B
C#
using NUnit.Framework;
|
|
using NzbDrone.Common.Disk;
|
|
using NzbDrone.Common.EnsureThat;
|
|
using NzbDrone.Test.Common;
|
|
|
|
namespace NzbDrone.Common.Test.EnsureTest
|
|
{
|
|
[TestFixture]
|
|
public class PathExtensionFixture : TestBase
|
|
{
|
|
[TestCase(@"p:\TV Shows\file with, comma.mkv")]
|
|
[TestCase(@"\\serer\share\file with, comma.mkv")]
|
|
public void EnsureWindowsPath(string path)
|
|
{
|
|
WindowsOnly();
|
|
Ensure.That(path, () => path).IsValidPath(PathValidationType.CurrentOs);
|
|
}
|
|
|
|
[TestCase(@"/var/user/file with, comma.mkv")]
|
|
public void EnsureLinuxPath(string path)
|
|
{
|
|
PosixOnly();
|
|
Ensure.That(path, () => path).IsValidPath(PathValidationType.CurrentOs);
|
|
}
|
|
}
|
|
}
|