2013-07-18 20:47:55 -07:00
|
|
|
using NUnit.Framework;
|
2013-05-28 17:15:12 -07:00
|
|
|
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")]
|
2013-07-25 22:00:57 -07:00
|
|
|
[TestCase(@"\\serer\share\file with, comma.mkv")]
|
2013-05-28 17:15:12 -07:00
|
|
|
public void EnsureWindowsPath(string path)
|
|
|
|
{
|
2013-07-25 22:00:57 -07:00
|
|
|
WindowsOnly();
|
|
|
|
Ensure.That(() => path).IsValidPath();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-07-25 22:29:59 -07:00
|
|
|
[TestCase(@"/var/user/file with, comma.mkv")]
|
2013-07-25 22:00:57 -07:00
|
|
|
public void EnsureLinuxPath(string path)
|
|
|
|
{
|
|
|
|
LinuxOnly();
|
2013-05-28 17:15:12 -07:00
|
|
|
Ensure.That(() => path).IsValidPath();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|