|
|
|
@ -731,7 +731,7 @@ namespace NzbDrone.Common.Test.DiskTests
|
|
|
|
|
|
|
|
|
|
// Note: never returns anything.
|
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
|
.Setup(v => v.GetFileInfos(It.IsAny<string>()))
|
|
|
|
|
.Setup(v => v.GetFileInfos(It.IsAny<string>(), SearchOption.TopDirectoryOnly))
|
|
|
|
|
.Returns(new List<FileInfo>());
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
@ -765,8 +765,8 @@ namespace NzbDrone.Common.Test.DiskTests
|
|
|
|
|
.Returns<string>(v => new DirectoryInfo(v).GetDirectories().ToList());
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
|
.Setup(v => v.GetFileInfos(It.IsAny<string>()))
|
|
|
|
|
.Returns<string>(v => new DirectoryInfo(v).GetFiles().ToList());
|
|
|
|
|
.Setup(v => v.GetFileInfos(It.IsAny<string>(), SearchOption.TopDirectoryOnly))
|
|
|
|
|
.Returns<string, SearchOption>((v, _) => new DirectoryInfo(v).GetFiles().ToList());
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
|
.Setup(v => v.GetFileSize(It.IsAny<string>()))
|
|
|
|
|