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 { [SetUp] public void Setup() { if (OsInfo.Os != Os.Bsd) { throw new IgnoreException("BSD Only"); } Mocker.SetConstant(Mocker.Resolve()); } [Test] public void should_get_version_info() { var info = Subject.Read(); info.FullName.Should().NotBeNullOrWhiteSpace(); info.Name.Should().NotBeNullOrWhiteSpace(); info.Version.Should().NotBeNullOrWhiteSpace(); } } }