|
|
@ -1,6 +1,5 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using FluentAssertions;
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NzbDrone.Common.Processes;
|
|
|
|
using NzbDrone.Common.Processes;
|
|
|
|
using NzbDrone.Core.HealthCheck.Checks;
|
|
|
|
using NzbDrone.Core.HealthCheck.Checks;
|
|
|
@ -78,5 +77,30 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check().ShouldBeOk();
|
|
|
|
Subject.Check().ShouldBeOk();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void should_return_ok_when_mono_3_6_1()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
GivenOutput("3.6.1");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check().ShouldBeOk();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void should_return_ok_when_mono_3_6_1_with_custom_output()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Mocker.GetMock<IProcessProvider>()
|
|
|
|
|
|
|
|
.Setup(s => s.StartAndCapture("mono", "--version"))
|
|
|
|
|
|
|
|
.Returns(new ProcessOutput
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Standard = new List<string>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"Mono JIT compiler version 3.6.1 (master/fce3972 Fri Jul 4 01:12:43 CEST 2014)",
|
|
|
|
|
|
|
|
"Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check().ShouldBeOk();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|