using FluentAssertions; using Moq; using NUnit.Framework; using NzbDrone.Common.Test.DiskTests; using NzbDrone.Mono.Disk; namespace NzbDrone.Mono.Test.DiskProviderTests { [TestFixture] [Platform(Exclude = "Win")] public class FreeSpaceFixture : FreeSpaceFixtureBase { [SetUp] public void Setup() { Mocker.SetConstant(new ProcMountProvider(TestLogger)); Mocker.GetMock() .Setup(v => v.GetCompleteRealPath(It.IsAny())) .Returns(s => s); } [Test] public void should_be_able_to_check_space_on_ramdrive() { Subject.GetAvailableSpace("/run/").Should().NotBe(0); } } }