Fix unit tests after filter paths change
This commit is contained in:
parent
041689e904
commit
86658b05ca
|
@ -37,7 +37,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole
|
||||||
.Returns(1000000);
|
.Returns(1000000);
|
||||||
|
|
||||||
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
|
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(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, c) => s.ToList());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void GivenChangedItem()
|
protected void GivenChangedItem()
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole
|
||||||
.Returns("myhash");
|
.Returns("myhash");
|
||||||
|
|
||||||
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
|
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(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, c) => s.ToList());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void GivenFailedDownload()
|
protected void GivenFailedDownload()
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole
|
||||||
.Returns(() => new FileStream(GetTempFilePath(), FileMode.Create));
|
.Returns(() => new FileStream(GetTempFilePath(), FileMode.Create));
|
||||||
|
|
||||||
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
|
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(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, c) => s.ToList());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void GivenFailedDownload()
|
protected void GivenFailedDownload()
|
||||||
|
|
|
@ -35,7 +35,7 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||||
.Returns(_videoFiles);
|
.Returns(_videoFiles);
|
||||||
|
|
||||||
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
|
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(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, c) => s.ToList());
|
||||||
|
|
||||||
Mocker.GetMock<IDiskProvider>().Setup(c => c.GetDirectories(It.IsAny<string>()))
|
Mocker.GetMock<IDiskProvider>().Setup(c => c.GetDirectories(It.IsAny<string>()))
|
||||||
.Returns(_subFolders);
|
.Returns(_subFolders);
|
||||||
|
|
Loading…
Reference in New Issue