From fba1a5acb956e70914631dfb540eaa5efe27e6f8 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 29 Feb 2020 23:42:01 -0500 Subject: [PATCH] Fixup test failures --- .../Checks/DotnetVersionCheckFixture.cs | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/NzbDrone.Core.Test/HealthCheck/Checks/DotnetVersionCheckFixture.cs b/src/NzbDrone.Core.Test/HealthCheck/Checks/DotnetVersionCheckFixture.cs index 2f7386b48..4e130ada0 100644 --- a/src/NzbDrone.Core.Test/HealthCheck/Checks/DotnetVersionCheckFixture.cs +++ b/src/NzbDrone.Core.Test/HealthCheck/Checks/DotnetVersionCheckFixture.cs @@ -32,16 +32,12 @@ public void should_return_ok(string version) [TestCase("4.7.1")] public void should_return_notice(string version) { - GivenOutput(version); + if (PlatformInfo.IsDotNet) + { + GivenOutput(version); - Subject.Check().ShouldBeNotice(); - } - - public void should_return_warning(string version) - { - GivenOutput(version); - - Subject.Check().ShouldBeWarning(); + Subject.Check().ShouldBeNotice(); + } } [TestCase("4.5")] @@ -49,9 +45,12 @@ public void should_return_warning(string version) [TestCase("4.6.1")] public void should_return_error(string version) { - GivenOutput(version); + if (PlatformInfo.IsDotNet) + { + GivenOutput(version); - Subject.Check().ShouldBeError(); + Subject.Check().ShouldBeError(); + } } [Test]