Fixed: All the tests

This commit is contained in:
ta264
2019-08-22 21:15:25 +01:00
committed by Qstick
parent 9392c13364
commit ee7d47d044
29 changed files with 397 additions and 209 deletions
@@ -7,6 +7,7 @@ using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Music;
using NzbDrone.Core.Validation.Paths;
using NzbDrone.Test.Common;
using NzbDrone.Common.EnvironmentInfo;
namespace NzbDrone.Core.Test.ValidationTests
{
@@ -52,8 +53,9 @@ namespace NzbDrone.Core.Test.ValidationTests
{
MonoOnly();
var bin = OsInfo.IsOsx ? "/System" : "/bin";
var artist = Builder<Artist>.CreateNew()
.With(s => s.Path = "/bin")
.With(s => s.Path = bin)
.Build();
_validator.Validate(artist).IsValid.Should().BeFalse();
@@ -64,9 +66,10 @@ namespace NzbDrone.Core.Test.ValidationTests
{
MonoOnly();
var bin = OsInfo.IsOsx ? "/System" : "/bin";
var artist = Builder<Artist>.CreateNew()
.With(s => s.Path = "/bin/test")
.Build();
.With(s => s.Path = Path.Combine(bin, "test"))
.Build();
_validator.Validate(artist).IsValid.Should().BeFalse();
}