From fa993109fc1ca3d1e18c96d2c206ad2a595b2b20 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Tue, 17 Sep 2013 10:36:57 -0700 Subject: [PATCH] removed old tests. --- NzbDrone.Core.Test/NzbDrone.Core.Test.csproj | 1 - .../GetSceneTvdbMappingsFixture.cs | 71 ------------------- 2 files changed, 72 deletions(-) delete mode 100644 NzbDrone.Core.Test/ProviderTests/XemCommunicationProviderTests/GetSceneTvdbMappingsFixture.cs diff --git a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj index 44efa3221..119e1d333 100644 --- a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj +++ b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj @@ -198,7 +198,6 @@ - diff --git a/NzbDrone.Core.Test/ProviderTests/XemCommunicationProviderTests/GetSceneTvdbMappingsFixture.cs b/NzbDrone.Core.Test/ProviderTests/XemCommunicationProviderTests/GetSceneTvdbMappingsFixture.cs deleted file mode 100644 index 65da5567d..000000000 --- a/NzbDrone.Core.Test/ProviderTests/XemCommunicationProviderTests/GetSceneTvdbMappingsFixture.cs +++ /dev/null @@ -1,71 +0,0 @@ -using System; -using System.Linq; -using FluentAssertions; -using Moq; -using NUnit.Framework; -using NzbDrone.Common; -using NzbDrone.Core.Providers; - -using NzbDrone.Core.Test.Framework; -using NzbDrone.Test.Common.Categories; - -namespace NzbDrone.Core.Test.ProviderTests.XemCommunicationProviderTests -{ - [TestFixture] - [IntegrationTest] - public class GetSceneTvdbMappingsFixture : CoreTest - { - private void WithFailureJson() - { - Mocker.GetMock().Setup(s => s.DownloadString(It.IsAny())) - .Returns(ReadAllText("Files", "Xem", "Failure.txt")); - } - - private void WithIdsJson() - { - Mocker.GetMock().Setup(s => s.DownloadString(It.IsAny())) - .Returns(ReadAllText("Files", "Xem", "Ids.txt")); - } - - private void WithMappingsJson() - { - Mocker.GetMock().Setup(s => s.DownloadString(It.IsAny())) - .Returns(ReadAllText("Files", "Xem", "Mappings.txt")); - } - - [Test] - public void should_throw_when_failure_is_found() - { - WithFailureJson(); - Assert.Throws(() => Mocker.Resolve().GetSceneTvdbMappings(12345)); - } - - [Test] - public void should_get_list_of_mappings() - { - WithMappingsJson(); - Mocker.Resolve().GetSceneTvdbMappings(12345).Should().NotBeEmpty(); - } - - [Test] - public void should_have_two_mappings() - { - WithMappingsJson(); - Mocker.Resolve().GetSceneTvdbMappings(12345).Should().HaveCount(2); - } - - [Test] - public void should_have_expected_results() - { - WithMappingsJson(); - var results = Mocker.Resolve().GetSceneTvdbMappings(12345); - var first = results.First(); - first.Scene.Absolute.Should().Be(1); - first.Scene.Season.Should().Be(1); - first.Scene.Episode.Should().Be(1); - first.Tvdb.Absolute.Should().Be(1); - first.Tvdb.Season.Should().Be(1); - first.Tvdb.Episode.Should().Be(1); - } - } -} \ No newline at end of file