mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-25 01:06:30 +00:00
Fixed test
This commit is contained in:
parent
7a675487fd
commit
b9dce2e82d
1 changed files with 4 additions and 0 deletions
|
@ -111,6 +111,10 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests
|
||||||
Mocker.GetMock<MediaFileProvider>().Setup(s => s.CalculateFilePath(It.IsAny<Series>(), It.IsAny<int>(), It.IsAny<string>(), It.IsAny<string>()))
|
Mocker.GetMock<MediaFileProvider>().Setup(s => s.CalculateFilePath(It.IsAny<Series>(), It.IsAny<int>(), It.IsAny<string>(), It.IsAny<string>()))
|
||||||
.Returns(new FileInfo(newFilePath));
|
.Returns(new FileInfo(newFilePath));
|
||||||
|
|
||||||
|
Mocker.GetMock<DiskProvider>()
|
||||||
|
.Setup(s => s.FileExists(filename))
|
||||||
|
.Returns(true);
|
||||||
|
|
||||||
Mocker.GetMock<DiskProvider>().Setup(s => s.MoveFile(episodeFile.Path, newFilePath));
|
Mocker.GetMock<DiskProvider>().Setup(s => s.MoveFile(episodeFile.Path, newFilePath));
|
||||||
|
|
||||||
//Act
|
//Act
|
||||||
|
|
Loading…
Reference in a new issue