mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-30 19:45:57 +00:00
26 lines
677 B
C#
26 lines
677 B
C#
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")]
|
|
[TestCase(@"\\serer\share\file with, comma.mkv")]
|
|
public void EnsureWindowsPath(string path)
|
|
{
|
|
WindowsOnly();
|
|
Ensure.That(() => path).IsValidPath();
|
|
}
|
|
|
|
|
|
[TestCase(@"var/user/file with, comma.mkv")]
|
|
public void EnsureLinuxPath(string path)
|
|
{
|
|
LinuxOnly();
|
|
Ensure.That(() => path).IsValidPath();
|
|
}
|
|
}
|
|
}
|