Files
Readarr/src/NzbDrone.Common.Test/EnsureTest/PathExtensionFixture.cs
T
Qstick f77a2feeef StyleCop (#1058)
* Stylecop Rules and Fixes
2020-01-03 07:49:24 -05:00

26 lines
686 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:\Music\file with, comma.mp3")]
[TestCase(@"\\serer\share\file with, comma.mp3")]
public void EnsureWindowsPath(string path)
{
WindowsOnly();
Ensure.That(path, () => path).IsValidPath();
}
[TestCase(@"/var/user/file with, comma.mp3")]
public void EnsureLinuxPath(string path)
{
PosixOnly();
Ensure.That(path, () => path).IsValidPath();
}
}
}