mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
Fixed broken tests
This commit is contained in:
parent
0a41a47c9d
commit
ae3452039c
@ -244,7 +244,7 @@ public void import_new_file_episode_has_better_quality_than_existing(string file
|
||||
|
||||
//Assert
|
||||
VerifyFileImport(result, Mocker, fakeEpisode, 12345);
|
||||
Mocker.GetMock<DiskProvider>().Verify(p => p.DeleteFile(It.IsAny<string>()), Times.Once());
|
||||
Mocker.GetMock<RecycleBinProvider>().Verify(p => p.DeleteFile(It.IsAny<string>()), Times.Once());
|
||||
}
|
||||
|
||||
[TestCase("WEEDS.S03E01.DUAL.hdtv.XviD.AC3.-HELLYWOOD.avi")]
|
||||
@ -280,7 +280,7 @@ public void import_new_multi_part_file_episode_has_equal_or_better_quality_than_
|
||||
|
||||
//Assert
|
||||
VerifyFileImport(result, Mocker, fakeEpisodes[0], 12345);
|
||||
Mocker.GetMock<DiskProvider>().Verify(p => p.DeleteFile(It.IsAny<string>()), Times.Once());
|
||||
Mocker.GetMock<RecycleBinProvider>().Verify(p => p.DeleteFile(It.IsAny<string>()), Times.Once());
|
||||
}
|
||||
|
||||
[TestCase("WEEDS.S03E01.DUAL.DVD.XviD.AC3.-HELLYWOOD.avi")]
|
||||
@ -356,7 +356,7 @@ public void import_new_multi_part_file_episode_replace_two_files()
|
||||
|
||||
//Assert
|
||||
VerifyFileImport(result, Mocker, fakeEpisode1, 12345);
|
||||
Mocker.GetMock<DiskProvider>().Verify(p => p.DeleteFile(It.IsAny<string>()), Times.Exactly(2));
|
||||
Mocker.GetMock<RecycleBinProvider>().Verify(p => p.DeleteFile(It.IsAny<string>()), Times.Exactly(2));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
Loading…
Reference in New Issue
Block a user