1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00
Radarr/NzbDrone.Common.Test/EnsureTest/PathExtensionFixture.cs

27 lines
678 B
C#
Raw Normal View History

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