public void WhenFreeingUpTwoPackagesWorthOfSpace_TwoPackagesAreMarkedForRemoval()
        {
            var fileSystem = new FileSystemThatHasSpace(1000, 10000);
            var log        = new InMemoryLog();
            var subject    = new PercentFreeDiskSpacePackageCleaner(fileSystem, new FirstInFirstOutJournalEntrySort(), Substitute.For <IVariables>(), log);
            var result     = subject.GetPackagesToRemove(MakeSomeJournalEntries());

            result.Count().Should().Be(2);
        }
        public void WhenThereIsEnoughFreeSpace_NothingIsRemoved()
        {
            var fileSystem = new FileSystemThatHasSpace(1000, 1000);
            var log        = new InMemoryLog();
            var subject    = new PercentFreeDiskSpacePackageCleaner(fileSystem, new FirstInFirstOutJournalEntrySort(), Substitute.For <IVariables>(), log);
            var result     = subject.GetPackagesToRemove(MakeSomeJournalEntries());

            result.Should().BeEmpty();
        }