1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00

Build Sonarr on Net6

Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
Qstick
2021-07-30 00:47:53 -04:00
committed by Mark McDowall
parent f79ae77a3a
commit 878d1561aa
222 changed files with 3643 additions and 5311 deletions
@@ -3,6 +3,7 @@ using System.IO;
using FizzWare.NBuilder;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Validation.Paths;
@@ -50,10 +51,11 @@ namespace NzbDrone.Core.Test.ValidationTests
[Test]
public void should_not_be_valid_if_set_to_bin_folder()
{
MonoOnly();
PosixOnly();
var bin = OsInfo.IsOsx ? "/System" : "/bin";
var series = Builder<Series>.CreateNew()
.With(s => s.Path = "/bin")
.With(s => s.Path = bin)
.Build();
_validator.Validate(series).IsValid.Should().BeFalse();
@@ -62,10 +64,11 @@ namespace NzbDrone.Core.Test.ValidationTests
[Test]
public void should_not_be_valid_if_child_of_bin_folder()
{
MonoOnly();
PosixOnly();
var bin = OsInfo.IsOsx ? "/System" : "/bin";
var series = Builder<Series>.CreateNew()
.With(s => s.Path = "/bin/test")
.With(s => s.Path = Path.Combine(bin, "test"))
.Build();
_validator.Validate(series).IsValid.Should().BeFalse();