OS X and linux can be treated separately

This commit is contained in:
Mark McDowall
2014-03-08 21:28:40 -08:00
parent 9d74693bb7
commit 8885bbb60f
22 changed files with 101 additions and 50 deletions
@@ -173,7 +173,7 @@ namespace NzbDrone.Test.Common.AutoMoq
{
var assemblyName = "NzbDrone.Windows";
if (OsInfo.IsLinux)
if (OsInfo.IsMono)
{
assemblyName = "NzbDrone.Mono";
}
+1 -1
View File
@@ -7,7 +7,7 @@ namespace NzbDrone.Test.Common
{
public static string AsOsAgnostic(this string path)
{
if (OsInfo.IsLinux)
if (OsInfo.IsMono)
{
if (path.Length > 2 && path[1] == ':')
{
+2 -2
View File
@@ -124,7 +124,7 @@ namespace NzbDrone.Test.Common
protected void WindowsOnly()
{
if (OsInfo.IsLinux)
if (OsInfo.IsMono)
{
throw new IgnoreException("windows specific test");
}
@@ -133,7 +133,7 @@ namespace NzbDrone.Test.Common
protected void LinuxOnly()
{
if (!OsInfo.IsLinux)
if (!OsInfo.IsMono)
{
throw new IgnoreException("linux specific test");
}