Added Mono version health check

This commit is contained in:
Mark McDowall
2014-03-14 03:15:30 -07:00
parent 1d4738b18f
commit 01d3decf7e
12 changed files with 127 additions and 10 deletions
@@ -36,7 +36,7 @@ namespace NzbDrone.Common.Test.DiskProviderTests
[Test]
public void should_be_able_to_check_space_on_ramdrive()
{
LinuxOnly();
MonoOnly();
Subject.GetAvailableSpace("/run/").Should().NotBe(0);
}
@@ -19,7 +19,7 @@ namespace NzbDrone.Common.Test.EnsureTest
[TestCase(@"/var/user/file with, comma.mkv")]
public void EnsureLinuxPath(string path)
{
LinuxOnly();
MonoOnly();
Ensure.That(path, () => path).IsValidPath();
}
}
@@ -50,7 +50,7 @@ namespace NzbDrone.Common.Test
[TestCase(@"//CAPITAL//lower// ", @"/CAPITAL/lower")]
public void Clean_Path_Linux(string dirty, string clean)
{
LinuxOnly();
MonoOnly();
var result = dirty.CleanFilePath();
result.Should().Be(clean);
@@ -139,7 +139,7 @@ namespace NzbDrone.Common.Test
[Test]
public void get_actual_casing_should_return_original_value_in_linux()
{
LinuxOnly();
MonoOnly();
var path = Directory.GetCurrentDirectory();
path.GetActualCasing().Should().Be(path);
path.GetActualCasing().Should().Be(path);