From aa734bdc259af8a75c5c14b2417211cc64c092f6 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 24 Dec 2017 23:58:41 -0500 Subject: [PATCH] Fixed: Remove BulkImportFixture, Obsolete. #166 --- .../BulkImport/BulkImportFixture.cs | 51 ------------------- .../NzbDrone.Core.Test.csproj | 1 - 2 files changed, 52 deletions(-) delete mode 100644 src/NzbDrone.Core.Test/BulkImport/BulkImportFixture.cs diff --git a/src/NzbDrone.Core.Test/BulkImport/BulkImportFixture.cs b/src/NzbDrone.Core.Test/BulkImport/BulkImportFixture.cs deleted file mode 100644 index 579e5cdf2..000000000 --- a/src/NzbDrone.Core.Test/BulkImport/BulkImportFixture.cs +++ /dev/null @@ -1,51 +0,0 @@ -using FizzWare.NBuilder; -using FluentAssertions; -using NUnit.Framework; -using Moq; -using NzbDrone.Core.Organizer; -using NzbDrone.Core.Music; -using NzbDrone.Core.Test.Framework; -using NzbDrone.Core.Music.Events; -using System.Collections.Generic; - -namespace NzbDrone.Core.Test.BulkImport -{ - [TestFixture] - public class BulkImportFixture : CoreTest - { - private List fakeArtists; - private FluentValidation.Results.ValidationResult fakeValidation; - - [SetUp] - public void Setup() - { - fakeArtists = Builder.CreateListOfSize(3).BuildList(); - fakeArtists.ForEach(m => - { - m.Path = null; - m.RootFolderPath = @"C:\Test\Music"; - }); - - fakeValidation = Builder.CreateNew().Build(); - } - [Test] - public void artist_added_event_should_have_proper_path() - { - Mocker.GetMock() - .Setup(s => s.GetArtistFolder(It.IsAny(), null)) - .Returns((Artist m, NamingConfig n) => m.Name); - - Mocker.GetMock() - .Setup(s => s.Validate(It.IsAny())) - .Returns(fakeValidation); - - var artists = Subject.AddArtists(fakeArtists); - - foreach (Artist artist in artists) - { - artist.Path.Should().NotBeNullOrEmpty(); - } - - } - } -} \ No newline at end of file diff --git a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj index d720fefb2..e242a085a 100644 --- a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj +++ b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj @@ -101,7 +101,6 @@ -