diff --git a/src/NzbDrone.Core.Test/ImportListTests/IMDbListRequestGeneratorFixture.cs b/src/NzbDrone.Core.Test/ImportListTests/IMDbListRequestGeneratorFixture.cs new file mode 100644 index 0000000000..6291b3f425 --- /dev/null +++ b/src/NzbDrone.Core.Test/ImportListTests/IMDbListRequestGeneratorFixture.cs @@ -0,0 +1,40 @@ +using System; +using FluentAssertions; +using NLog; +using NUnit.Framework; +using NzbDrone.Core.ImportLists.RadarrList2.IMDbList; +using NzbDrone.Core.Test.Framework; + +namespace NzbDrone.Core.Test.ImportListTests +{ + [TestFixture] + public class IMDbListRequestGeneratorFixture : CoreTest + { + [SetUp] + public void Setup() + { + Subject.Logger = LogManager.GetCurrentClassLogger(); + } + + [Test] + public void should_throw_not_supported_exception_for_ls_format_list() + { + Subject.Settings = new IMDbListSettings { ListId = "ls123456789" }; + + Action act = () => Subject.GetMovies(); + + act.Should().Throw() + .WithMessage("*ls12345678*no longer supported*"); + } + + [Test] + public void should_throw_not_supported_exception_case_insensitive() + { + Subject.Settings = new IMDbListSettings { ListId = "LS999999999" }; + + Action act = () => Subject.GetMovies(); + + act.Should().Throw(); + } + } +}