mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 01:37:07 +00:00
Fixed broken test
This commit is contained in:
parent
6ca17942f0
commit
c8c67a8254
1 changed files with 9 additions and 1 deletions
|
@ -36,6 +36,10 @@ namespace NzbDrone.Common.Test
|
|||
"Users",
|
||||
"Windows"
|
||||
};
|
||||
|
||||
Mocker.GetMock<IDiskProvider>()
|
||||
.SetupGet(s => s.SpecialFolders)
|
||||
.Returns(new HashSet<string> { "$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<String>()))
|
||||
.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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue