Rework Tests for Music, Start TV Code Cleanup

This commit is contained in:
Qstick
2017-10-17 22:55:02 -04:00
parent 1688c0a8df
commit 42e25055a9
37 changed files with 227 additions and 980 deletions
@@ -128,14 +128,14 @@ namespace NzbDrone.Core.Test.MediaFiles
Times.Once());
}
[Test]
public void should_publish_EpisodeImportedEvent_for_new_downloads()
{
Subject.Import(new List<ImportDecision> { _approvedDecisions.First() }, true);
//[Test]
//public void should_publish_EpisodeImportedEvent_for_new_downloads()
//{
// Subject.Import(new List<ImportDecision> { _approvedDecisions.First() }, true);
Mocker.GetMock<IEventAggregator>()
.Verify(v => v.PublishEvent(It.IsAny<EpisodeImportedEvent>()), Times.Once());
}
// Mocker.GetMock<IEventAggregator>()
// .Verify(v => v.PublishEvent(It.IsAny<EpisodeImportedEvent>()), Times.Once());
//}
[Test]
public void should_not_move_existing_files()
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using FluentAssertions;
@@ -6,7 +6,6 @@ using Moq;
using NUnit.Framework;
using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Music;
using NzbDrone.Test.Common;
@@ -148,4 +147,4 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaFileServiceTests
Subject.FilterExistingFiles(files, _artist).Should().Contain(files.First());
}
}
}
}
@@ -9,7 +9,6 @@ using NzbDrone.Common.Disk;
using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Music;
using NzbDrone.Test.Common;