You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
950 B
35 lines
950 B
4 years ago
|
using FluentAssertions;
|
||
|
using NUnit.Framework;
|
||
|
using NzbDrone.Common.EnvironmentInfo;
|
||
|
using NzbDrone.Common.Processes;
|
||
|
using NzbDrone.Mono.EnvironmentInfo.VersionAdapters;
|
||
|
using NzbDrone.Test.Common;
|
||
|
|
||
|
namespace NzbDrone.Mono.Test.EnvironmentInfo
|
||
|
{
|
||
|
[TestFixture]
|
||
|
[Platform("Linux")]
|
||
|
public class FreebsdVersionAdapterFixture : TestBase<FreebsdVersionAdapter>
|
||
|
{
|
||
|
[SetUp]
|
||
|
public void Setup()
|
||
|
{
|
||
|
if (OsInfo.Os != Os.Bsd)
|
||
|
{
|
||
|
throw new IgnoreException("BSD Only");
|
||
|
}
|
||
|
|
||
|
Mocker.SetConstant<IProcessProvider>(Mocker.Resolve<ProcessProvider>());
|
||
|
}
|
||
|
|
||
|
[Test]
|
||
|
public void should_get_version_info()
|
||
|
{
|
||
|
var info = Subject.Read();
|
||
|
info.FullName.Should().NotBeNullOrWhiteSpace();
|
||
|
info.Name.Should().NotBeNullOrWhiteSpace();
|
||
|
info.Version.Should().NotBeNullOrWhiteSpace();
|
||
|
}
|
||
|
}
|
||
|
}
|