1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-31 19:32:51 +00:00

Fixed broken test

This commit is contained in:
Mark McDowall 2012-08-08 22:03:42 -07:00
parent 65df24988c
commit ff23b883a6

View file

@ -60,7 +60,7 @@ private void WithImportableFiles()
private void WithLotsOfFreeDiskSpace() private void WithLotsOfFreeDiskSpace()
{ {
Mocker.GetMock<DiskProvider>().Setup(s => s.FreeDiskSpace(It.IsAny<DirectoryInfo>())).Returns(1000000); Mocker.GetMock<DiskProvider>().Setup(s => s.FreeDiskSpace(It.IsAny<DirectoryInfo>())).Returns(1000000000);
} }
private void WithImportedFiles(string droppedFolder) private void WithImportedFiles(string droppedFolder)
@ -280,7 +280,7 @@ public void folder_should_not_be_tagged_if_existing_tag_is_diffrent()
} }
[Test] [Test]
public void when_files_are_imported_and_folder_is_small_enought_dir_should_be_deleted() public void when_files_are_imported_and_folder_is_small_enough_dir_should_be_deleted()
{ {
//Setup //Setup
WithStrictMocker(); WithStrictMocker();
@ -290,15 +290,6 @@ public void when_files_are_imported_and_folder_is_small_enought_dir_should_be_de
WithImportedFiles(droppedFolder.FullName); WithImportedFiles(droppedFolder.FullName);
var fakeSeries = Builder<Series>.CreateNew()
.With(s => s.Title = "The Office")
.Build();
var fakeEpisodeFiles = Builder<EpisodeFile>.CreateListOfSize(2)
.All()
.With(f => f.SeriesId = fakeSeries.SeriesId)
.Build().ToList();
Mocker.GetMock<SeriesProvider>().Setup(s => s.FindSeries("office")).Returns(fakeSeries); Mocker.GetMock<SeriesProvider>().Setup(s => s.FindSeries("office")).Returns(fakeSeries);
Mocker.GetMock<DiskScanProvider>().Setup(s => s.CleanUpDropFolder(droppedFolder.FullName)); Mocker.GetMock<DiskScanProvider>().Setup(s => s.CleanUpDropFolder(droppedFolder.FullName));
Mocker.GetMock<DiskScanProvider>().Setup(s => s.MoveEpisodeFile(It.IsAny<EpisodeFile>(), true)).Returns(new EpisodeFile()); Mocker.GetMock<DiskScanProvider>().Setup(s => s.MoveEpisodeFile(It.IsAny<EpisodeFile>(), true)).Returns(new EpisodeFile());