From a4f8947d90114d6a175d3fc24c3ea14194ba7c6b Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 22 May 2011 09:53:21 -0700 Subject: [PATCH] Test project cleanup --- NzbDrone.Core.Test/DiskScanJobTest.cs | 2 +- NzbDrone.Core.Test/EpisodeProviderTest.cs | Bin 5785 -> 6675 bytes NzbDrone.Core.Test/Fixtures.cs | 1 + .../Framework/AutoMoq/AutoMoqer.cs | 1 + .../Framework/AutoMoq/AutoMoqerTest.cs | 3 ++- .../Unity/AutoMockingBuilderStrategy.cs | 3 ++- .../Unity/AutoMockingContainerExtension.cs | 3 ++- .../Framework/ExceptionVerification.cs | 3 ++- NzbDrone.Core.Test/Framework/MockLib.cs | 3 ++- NzbDrone.Core.Test/Framework/TestBase.cs | 1 + NzbDrone.Core.Test/HistoryProviderTest.cs | 8 +++----- NzbDrone.Core.Test/ImportNewSeriesJobTest.cs | 3 ++- NzbDrone.Core.Test/IndexerProviderTest.cs | 3 ++- NzbDrone.Core.Test/InventoryProviderTest.cs | 3 ++- NzbDrone.Core.Test/JobProviderTest.cs | 3 ++- NzbDrone.Core.Test/MediaFileProviderTests.cs | 3 ++- NzbDrone.Core.Test/ParserTest.cs | 3 ++- NzbDrone.Core.Test/QualityProfileTest.cs | 1 + NzbDrone.Core.Test/RepoTest.cs | 3 ++- NzbDrone.Core.Test/RootDirProviderTest.cs | 3 ++- NzbDrone.Core.Test/SabProviderTest.cs | 3 ++- NzbDrone.Core.Test/SeriesProviderTest.cs | Bin 8286 -> 7765 bytes NzbDrone.Core.Test/TvDbProviderTest.cs | 3 ++- 23 files changed, 38 insertions(+), 21 deletions(-) diff --git a/NzbDrone.Core.Test/DiskScanJobTest.cs b/NzbDrone.Core.Test/DiskScanJobTest.cs index 1522f70c2..a11d119ee 100644 --- a/NzbDrone.Core.Test/DiskScanJobTest.cs +++ b/NzbDrone.Core.Test/DiskScanJobTest.cs @@ -1,4 +1,4 @@ -using System; +// ReSharper disable RedundantUsingDirective using System.Linq; using System.Collections.Generic; using System.Threading; diff --git a/NzbDrone.Core.Test/EpisodeProviderTest.cs b/NzbDrone.Core.Test/EpisodeProviderTest.cs index 25e2c53cbca88abb7f9219989e6a2611b82281aa..9ae4b9512beb94e03c3f5c97e16e37dc64bf7952 100644 GIT binary patch delta 836 zcmaKq!Ak2u6o$E?n@W@x1+OkV;KD>|ycHLMR;*URg)UkzE<`Wmol`pylaiTOx+v8b z5MFa_^gHq77 z+qo=Mh{v(BY}6PJD3%2g5#Mdp(A^0{K?zgmz)FF+_G5N-zC#&}B)rXd>?FaezAX_( z|La>qLL0q6&FOoxF0K#HnViNwn;JBg2}?iMJG?b%(Y&NoVj9Vs)kk}~GMAv%DuyU9G^fv%^ delta 55 xcmbPiGE136p+B=PC?zt4q_~mw+Sv{hl+3BD*Bjd^E`=CMgY$R5Ig_? diff --git a/NzbDrone.Core.Test/Fixtures.cs b/NzbDrone.Core.Test/Fixtures.cs index e413f01f7..816b5f5ce 100644 --- a/NzbDrone.Core.Test/Fixtures.cs +++ b/NzbDrone.Core.Test/Fixtures.cs @@ -1,3 +1,4 @@ +// ReSharper disable RedundantUsingDirective using System; using System.IO; using MbUnit.Framework; diff --git a/NzbDrone.Core.Test/Framework/AutoMoq/AutoMoqer.cs b/NzbDrone.Core.Test/Framework/AutoMoq/AutoMoqer.cs index 9af4fd78e..27b2eee78 100644 --- a/NzbDrone.Core.Test/Framework/AutoMoq/AutoMoqer.cs +++ b/NzbDrone.Core.Test/Framework/AutoMoq/AutoMoqer.cs @@ -1,3 +1,4 @@ +// ReSharper disable RedundantUsingDirective using System; using System.Collections.Generic; using System.Linq; diff --git a/NzbDrone.Core.Test/Framework/AutoMoq/AutoMoqerTest.cs b/NzbDrone.Core.Test/Framework/AutoMoq/AutoMoqerTest.cs index dacb0e36d..4c1a0bc1a 100644 --- a/NzbDrone.Core.Test/Framework/AutoMoq/AutoMoqerTest.cs +++ b/NzbDrone.Core.Test/Framework/AutoMoq/AutoMoqerTest.cs @@ -1,7 +1,8 @@ -using System; +// ReSharper disable RedundantUsingDirective using AutoMoq; using MbUnit.Framework; using Moq; +using System; namespace NzbDrone.Core.Test { diff --git a/NzbDrone.Core.Test/Framework/AutoMoq/Unity/AutoMockingBuilderStrategy.cs b/NzbDrone.Core.Test/Framework/AutoMoq/Unity/AutoMockingBuilderStrategy.cs index 0f1877b3d..af393fbee 100644 --- a/NzbDrone.Core.Test/Framework/AutoMoq/Unity/AutoMockingBuilderStrategy.cs +++ b/NzbDrone.Core.Test/Framework/AutoMoq/Unity/AutoMockingBuilderStrategy.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/NzbDrone.Core.Test/Framework/AutoMoq/Unity/AutoMockingContainerExtension.cs b/NzbDrone.Core.Test/Framework/AutoMoq/Unity/AutoMockingContainerExtension.cs index 935337d53..d9979df32 100644 --- a/NzbDrone.Core.Test/Framework/AutoMoq/Unity/AutoMockingContainerExtension.cs +++ b/NzbDrone.Core.Test/Framework/AutoMoq/Unity/AutoMockingContainerExtension.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.Collections.Generic; using Microsoft.Practices.Unity; using Microsoft.Practices.Unity.ObjectBuilder; diff --git a/NzbDrone.Core.Test/Framework/ExceptionVerification.cs b/NzbDrone.Core.Test/Framework/ExceptionVerification.cs index 6de716867..9dbb4d5b0 100644 --- a/NzbDrone.Core.Test/Framework/ExceptionVerification.cs +++ b/NzbDrone.Core.Test/Framework/ExceptionVerification.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.Linq; using System.Collections.Generic; using NLog; diff --git a/NzbDrone.Core.Test/Framework/MockLib.cs b/NzbDrone.Core.Test/Framework/MockLib.cs index dc58de9c2..774a4448e 100644 --- a/NzbDrone.Core.Test/Framework/MockLib.cs +++ b/NzbDrone.Core.Test/Framework/MockLib.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/NzbDrone.Core.Test/Framework/TestBase.cs b/NzbDrone.Core.Test/Framework/TestBase.cs index f17e9bf26..74bafacf5 100644 --- a/NzbDrone.Core.Test/Framework/TestBase.cs +++ b/NzbDrone.Core.Test/Framework/TestBase.cs @@ -3,6 +3,7 @@ namespace NzbDrone.Core.Test.Framework { public class TestBase + // ReSharper disable InconsistentNaming { [SetUp] diff --git a/NzbDrone.Core.Test/HistoryProviderTest.cs b/NzbDrone.Core.Test/HistoryProviderTest.cs index edbfb2d94..c689a41ff 100644 --- a/NzbDrone.Core.Test/HistoryProviderTest.cs +++ b/NzbDrone.Core.Test/HistoryProviderTest.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.Collections.Generic; using System.Linq; using AutoMoq; @@ -26,7 +27,6 @@ namespace NzbDrone.Core.Test AirDate = DateTime.Today.AddDays(-1), EpisodeId = 1234, EpisodeNumber = 5, - Language = "English", Overview = "This is an Overview", SeasonNumber = 1, SeasonId = 4321, @@ -107,7 +107,6 @@ namespace NzbDrone.Core.Test AirDate = DateTime.Today.AddDays(-1), EpisodeId = 1234, EpisodeNumber = 5, - Language = "English", Overview = "This is an Overview", SeasonNumber = 1, SeasonId = 4321, @@ -137,13 +136,12 @@ namespace NzbDrone.Core.Test //Todo: This test fails... Moq Setup doesn't return the expected value //Setup - var season = new Season { SeasonId = 4321, SeasonNumber = 1, SeriesId = 5656, Monitored = true }; + var season = new Season { SeasonId = 4321, SeasonNumber = 1, SeriesId = 5656, Monitored = true }; var episode = new Episode { AirDate = DateTime.Today.AddDays(-1), EpisodeId = 1234, EpisodeNumber = 5, - Language = "English", Overview = "This is an Overview", SeasonNumber = 1, SeasonId = 4321, diff --git a/NzbDrone.Core.Test/ImportNewSeriesJobTest.cs b/NzbDrone.Core.Test/ImportNewSeriesJobTest.cs index b073cd4c3..02b9f7f3e 100644 --- a/NzbDrone.Core.Test/ImportNewSeriesJobTest.cs +++ b/NzbDrone.Core.Test/ImportNewSeriesJobTest.cs @@ -1,4 +1,4 @@ -using System; +// ReSharper disable RedundantUsingDirective using System.Linq; using System.Collections.Generic; using System.Threading; @@ -11,6 +11,7 @@ using NzbDrone.Core.Providers; using NzbDrone.Core.Providers.Jobs; using NzbDrone.Core.Repository; using NzbDrone.Core.Test.Framework; +using System; namespace NzbDrone.Core.Test { diff --git a/NzbDrone.Core.Test/IndexerProviderTest.cs b/NzbDrone.Core.Test/IndexerProviderTest.cs index f43a5b2b8..dccb384a5 100644 --- a/NzbDrone.Core.Test/IndexerProviderTest.cs +++ b/NzbDrone.Core.Test/IndexerProviderTest.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.Collections.Generic; using System.IO; using System.Net; diff --git a/NzbDrone.Core.Test/InventoryProviderTest.cs b/NzbDrone.Core.Test/InventoryProviderTest.cs index fdad3973b..bbf0113c6 100644 --- a/NzbDrone.Core.Test/InventoryProviderTest.cs +++ b/NzbDrone.Core.Test/InventoryProviderTest.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.Collections.Generic; using System.IO; using System.Net; diff --git a/NzbDrone.Core.Test/JobProviderTest.cs b/NzbDrone.Core.Test/JobProviderTest.cs index b160a0c3c..f1af906bc 100644 --- a/NzbDrone.Core.Test/JobProviderTest.cs +++ b/NzbDrone.Core.Test/JobProviderTest.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.Collections.Generic; using System.Threading; using AutoMoq; diff --git a/NzbDrone.Core.Test/MediaFileProviderTests.cs b/NzbDrone.Core.Test/MediaFileProviderTests.cs index 6b8935116..f308b886b 100644 --- a/NzbDrone.Core.Test/MediaFileProviderTests.cs +++ b/NzbDrone.Core.Test/MediaFileProviderTests.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Linq; diff --git a/NzbDrone.Core.Test/ParserTest.cs b/NzbDrone.Core.Test/ParserTest.cs index ad584cd51..9ec82dc28 100644 --- a/NzbDrone.Core.Test/ParserTest.cs +++ b/NzbDrone.Core.Test/ParserTest.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using MbUnit.Framework; using NzbDrone.Core.Repository.Quality; using NzbDrone.Core.Test.Framework; diff --git a/NzbDrone.Core.Test/QualityProfileTest.cs b/NzbDrone.Core.Test/QualityProfileTest.cs index 5a58933b2..da1faeba3 100644 --- a/NzbDrone.Core.Test/QualityProfileTest.cs +++ b/NzbDrone.Core.Test/QualityProfileTest.cs @@ -1,3 +1,4 @@ +// ReSharper disable RedundantUsingDirective using System; using System.Collections.Generic; using System.Linq; diff --git a/NzbDrone.Core.Test/RepoTest.cs b/NzbDrone.Core.Test/RepoTest.cs index 4cc73e07b..616238309 100644 --- a/NzbDrone.Core.Test/RepoTest.cs +++ b/NzbDrone.Core.Test/RepoTest.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.Linq; using FizzWare.NBuilder; using MbUnit.Framework; diff --git a/NzbDrone.Core.Test/RootDirProviderTest.cs b/NzbDrone.Core.Test/RootDirProviderTest.cs index 9c0e50228..4ebfcff44 100644 --- a/NzbDrone.Core.Test/RootDirProviderTest.cs +++ b/NzbDrone.Core.Test/RootDirProviderTest.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.Linq; using AutoMoq; using MbUnit.Framework; diff --git a/NzbDrone.Core.Test/SabProviderTest.cs b/NzbDrone.Core.Test/SabProviderTest.cs index 1f6c47cb9..d48df6fe0 100644 --- a/NzbDrone.Core.Test/SabProviderTest.cs +++ b/NzbDrone.Core.Test/SabProviderTest.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using System.IO; using System.Linq; using AutoMoq; diff --git a/NzbDrone.Core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ProviderTest.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable RedundantUsingDirective +using System; using MbUnit.Framework; using NzbDrone.Core.Providers; using NzbDrone.Core.Test.Framework;