fixup FilterFiles mocks in various unit tests

This commit is contained in:
Qstick 2020-07-01 23:19:38 -04:00
parent 4f22d135d6
commit e18e074ee9
4 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole
.Returns(1000000);
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterFiles(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
.Returns<string, IEnumerable<string>>((b, s) => s.ToList());
.Returns<string, IEnumerable<string>, bool>((b, s, e) => s.ToList());
}
protected void GivenChangedItem()

View File

@ -52,7 +52,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole
.Returns("myhash");
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterFiles(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
.Returns<string, IEnumerable<string>>((b, s) => s.ToList());
.Returns<string, IEnumerable<string>, bool>((b, s, e) => s.ToList());
}
protected void GivenFailedDownload()

View File

@ -43,7 +43,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole
.Returns(() => new FileStream(GetTempFilePath(), FileMode.Create));
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterFiles(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
.Returns<string, IEnumerable<string>>((b, s) => s.ToList());
.Returns<string, IEnumerable<string>, bool>((b, s, e) => s.ToList());
}
protected void GivenFailedDownload()

View File

@ -37,7 +37,7 @@ namespace NzbDrone.Core.Test.MediaFiles
.Returns(_videoFiles);
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterFiles(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
.Returns<string, IEnumerable<string>>((b, s) => s.ToList());
.Returns<string, IEnumerable<string>, bool>((b, s, e) => s.ToList());
Mocker.GetMock<IDiskProvider>().Setup(c => c.GetDirectories(It.IsAny<string>()))
.Returns(_subFolders);