1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

Added tests for DB Converters

Closes #482
This commit is contained in:
Mark McDowall
2018-01-14 12:42:18 -08:00
parent 245bf6c7d6
commit 968d8159a6
17 changed files with 622 additions and 34 deletions
@@ -1,4 +1,4 @@
using System.IO;
using System.IO;
using FizzWare.NBuilder;
using Moq;
using NUnit.Framework;
@@ -63,6 +63,8 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaFileDeletionService
[Test]
public void should_throw_if_root_folder_does_not_exist()
{
ExceptionVerification.ExpectedWarns(1);
Assert.Throws<NzbDroneClientException>(() => Subject.DeleteEpisodeFile(_series, _episodeFile));
}
@@ -70,6 +72,9 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaFileDeletionService
public void should_should_throw_if_root_folder_is_empty()
{
GivenRootFolderExists();
ExceptionVerification.ExpectedWarns(1);
Assert.Throws<NzbDroneClientException>(() => Subject.DeleteEpisodeFile(_series, _episodeFile));
}