diff --git a/NzbDrone.Common.Test/DirectoryLookupServiceFixture.cs b/NzbDrone.Common.Test/DirectoryLookupServiceFixture.cs index 845ceb5af..53867ce47 100644 --- a/NzbDrone.Common.Test/DirectoryLookupServiceFixture.cs +++ b/NzbDrone.Common.Test/DirectoryLookupServiceFixture.cs @@ -36,6 +36,10 @@ namespace NzbDrone.Common.Test "Users", "Windows" }; + + Mocker.GetMock() + .SetupGet(s => s.SpecialFolders) + .Returns(new HashSet { "$recycle.bin", "system volume information", "recycler" }); } private void SetupFolders(string root) @@ -96,7 +100,11 @@ namespace NzbDrone.Common.Test .Setup(s => s.GetDirectories(It.IsAny())) .Returns(_folders.ToArray()); - Subject.LookupSubDirectories(root).Should().HaveCount(_folders.Count - 2); + var result = Subject.LookupSubDirectories(root); + + result.Should().HaveCount(_folders.Count - 2); + result.Should().NotContain(RECYCLING_BIN); + result.Should().NotContain(SYSTEM_VOLUME_INFORMATION); } } }