separated sqlce and db4o tests.

This commit is contained in:
kay.one 2013-02-02 12:54:03 -08:00
parent 9f829c1442
commit f973a42669
106 changed files with 192 additions and 176 deletions

View File

@ -17,7 +17,7 @@ namespace NzbDrone.Core.Test
[TestFixture]
[ExclusivelyUses("REAL_LOG_FILE")]
[Serial]
class CentralDispatchFixture : CoreTest
class CentralDispatchFixture : SqlCeTest
{
readonly IList<string> indexers = typeof(CentralDispatch).Assembly.GetTypes().Where(t => t.IsSubclassOf(typeof(IndexerBase))).Select(c => c.ToString()).ToList();
readonly IList<string> jobs = typeof(CentralDispatch).Assembly.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(IJob))).Select(c=>c.ToString()).ToList();

View File

@ -9,7 +9,7 @@ using Db4objects.Db4o.Linq;
namespace NzbDrone.Core.Test.Datastore
{
[TestFixture]
public class ObjectDatabaseFixture : CoreTest
public class ObjectDatabaseFixture : ObjectDbTest
{
[SetUp]
public void SetUp()
@ -23,11 +23,11 @@ namespace NzbDrone.Core.Test.Datastore
var series = Builder<Series>.CreateNew().Build();
ObjDb.Create(series);
Db.Create(series);
ObjDb.Ext().Purge();
Db.Ext().Purge();
ObjDb.AsQueryable<Series>().Should().HaveCount(1);
Db.AsQueryable<Series>().Should().HaveCount(1);
}
@ -35,15 +35,15 @@ namespace NzbDrone.Core.Test.Datastore
public void should_not_store_dirty_data_in_cache()
{
var episode = Builder<Episode>.CreateNew().Build();
//Save series without episode attached
ObjDb.Create(episode);
ObjDb.AsQueryable<Episode>().Single().Series.Should().BeNull();
Db.Create(episode);
Db.AsQueryable<Episode>().Single().Series.Should().BeNull();
episode.Series = Builder<Series>.CreateNew().Build();
ObjDb.AsQueryable<Episode>().Single().Series.Should().BeNull();
Db.AsQueryable<Episode>().Single().Series.Should().BeNull();
}
@ -51,14 +51,14 @@ namespace NzbDrone.Core.Test.Datastore
public void rollback_should_reset_state()
{
var episode = Builder<Episode>.CreateNew().Build();
ObjDb.Create(episode);
ObjDb.AsQueryable<Episode>().Should().HaveCount(1);
Db.Create(episode);
ObjDb.Rollback();
Db.AsQueryable<Episode>().Should().HaveCount(1);
ObjDb.AsQueryable<Episode>().Should().HaveCount(0);
Db.Rollback();
Db.AsQueryable<Episode>().Should().HaveCount(0);
}
[Test]
@ -67,16 +67,16 @@ namespace NzbDrone.Core.Test.Datastore
var episode = Builder<Episode>.CreateNew().Build();
var series = Builder<Series>.CreateNew().Build();
ObjDb.Create(episode);
Db.Create(episode);
ObjDb.Commit();
Db.Commit();
ObjDb.Create(series);
Db.Create(series);
ObjDb.Rollback();
Db.Rollback();
ObjDb.AsQueryable<Episode>().Should().HaveCount(1);
ObjDb.AsQueryable<Series>().Should().HaveCount(0);
Db.AsQueryable<Episode>().Should().HaveCount(1);
Db.AsQueryable<Series>().Should().HaveCount(0);
}
@ -86,10 +86,10 @@ namespace NzbDrone.Core.Test.Datastore
var episode = Builder<Episode>.CreateNew().Build();
episode.Series = Builder<Series>.CreateNew().Build();
ObjDb.Create(episode);
Db.Create(episode);
ObjDb.AsQueryable<Episode>().Should().HaveCount(1);
ObjDb.AsQueryable<Episode>().Single().Series.Should().NotBeNull();
Db.AsQueryable<Episode>().Should().HaveCount(1);
Db.AsQueryable<Episode>().Single().Series.Should().NotBeNull();
}
[Test]
@ -98,15 +98,15 @@ namespace NzbDrone.Core.Test.Datastore
var episode = Builder<Episode>.CreateNew().Build();
episode.Series = Builder<Series>.CreateNew().Build();
ObjDb.Create(episode);
Db.Create(episode);
episode.Series.Title = "UpdatedTitle";
ObjDb.Update(episode,2);
Db.Update(episode, 2);
ObjDb.AsQueryable<Episode>().Should().HaveCount(1);
ObjDb.AsQueryable<Episode>().Single().Series.Should().NotBeNull();
ObjDb.AsQueryable<Episode>().Single().Series.Title.Should().Be("UpdatedTitle");
Db.AsQueryable<Episode>().Should().HaveCount(1);
Db.AsQueryable<Episode>().Single().Series.Should().NotBeNull();
Db.AsQueryable<Episode>().Single().Series.Title.Should().Be("UpdatedTitle");
}
}
}

View File

@ -10,7 +10,7 @@ namespace NzbDrone.Core.Test
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class EpisodeParseResultTest : CoreTest
public class EpisodeParseResultTest : SqlCeTest
{
[Test]
public void tostring_single_season_episode()

View File

@ -10,7 +10,7 @@ namespace NzbDrone.Core.Test
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class EpisodeStatusTest : CoreTest
public class EpisodeStatusTest : SqlCeTest
{
[TestCase(1, false, false, EpisodeStatusType.NotAired)]
[TestCase(-2, false, false, EpisodeStatusType.Missing)]

View File

@ -9,7 +9,7 @@ namespace NzbDrone.Core.Test
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class FluentTest : CoreTest
public class FluentTest : SqlCeTest
{
[TestCase(null, "def", "def")]
[TestCase("", "def", "def")]

View File

@ -1,6 +1,6 @@
namespace NzbDrone.Core.Test.Framework
{
public abstract class CoreTest<TSubject> : CoreTest where TSubject : class
public abstract class SqlCeTest<TSubject> : SqlCeTest where TSubject : class
{
private TSubject _subject;

View File

@ -10,7 +10,66 @@ using PetaPoco;
namespace NzbDrone.Core.Test.Framework
{
public abstract class CoreTest : TestBase
{
protected static ProgressNotification MockNotification
{
get
{
return new ProgressNotification("Mock notification");
}
}
protected static void ThrowException()
{
throw new ApplicationException("This is a message for test exception");
}
}
public abstract class ObjectDbTest : CoreTest
{
private IObjectDbSession _db;
protected IObjectDbSession Db
{
get
{
if (_db == null)
throw new InvalidOperationException("Test object database doesn't exists. Make sure you call WithRealDb() if you intend to use an actual database.");
return _db;
}
}
protected void WithObjectDb(bool memory = true)
{
if (memory)
{
_db = new ObjectDbSessionFactory().Create(new PagingMemoryStorage());
}
else
{
_db = new ObjectDbSessionFactory().Create(dbName: Guid.NewGuid().ToString());
}
Mocker.SetConstant(Db);
}
[TearDown]
public void ObjectDbTearDown()
{
if (_db != null)
{
_db.Dispose();
}
}
}
public abstract class SqlCeTest : CoreTest
{
private string _dbTemplateName;
@ -73,18 +132,6 @@ namespace NzbDrone.Core.Test.Framework
}
}
private IObjectDbSession _objDb;
protected IObjectDbSession ObjDb
{
get
{
if (_objDb == null)
throw new InvalidOperationException("Test object database doesn't exists. Make sure you call WithRealDb() if you intend to use an actual database.");
return _objDb;
}
}
protected void WithRealDb()
@ -93,32 +140,6 @@ namespace NzbDrone.Core.Test.Framework
Mocker.SetConstant(Db);
}
protected void WithObjectDb(bool memory = true)
{
if (memory)
{
_objDb = new ObjectDbSessionFactory().Create(new PagingMemoryStorage());
}
else
{
_objDb = new ObjectDbSessionFactory().Create(dbName: Guid.NewGuid().ToString());
}
Mocker.SetConstant(ObjDb);
}
protected static ProgressNotification MockNotification
{
get
{
return new ProgressNotification("Mock notification");
}
}
protected static void ThrowException()
{
throw new ApplicationException("This is a message for test exception");
}
[TearDown]
public void CoreTestTearDown()
@ -136,11 +157,6 @@ namespace NzbDrone.Core.Test.Framework
}
catch (IOException) { }
}
if (_objDb != null)
{
_objDb.Dispose();
}
}
}
}

View File

@ -16,7 +16,7 @@ namespace NzbDrone.Core.Test.HelperTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class SortHelperTest : CoreTest
public class SortHelperTest : SqlCeTest
{
[TestCase("The Office (US)", "Office (US)")]
[TestCase("A Man in Anger", "Man in Anger")]

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Core.Test.HelperTests.XElementHelperTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class ParseDayOfWeekFixture : CoreTest
public class ParseDayOfWeekFixture : SqlCeTest
{
[Test]
public void should_return_null_if_xelement_is_null()

View File

@ -16,7 +16,7 @@ namespace NzbDrone.Core.Test.HelperTests.XElementHelperTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class XElementHelperTest : CoreTest
public class XElementHelperTest : SqlCeTest
{
[Test]
public void Int32_should_return_zero_when_xelement_is_null()

View File

@ -24,7 +24,7 @@ namespace NzbDrone.Core.Test.IndexerTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class IndexerFixture : CoreTest
public class IndexerFixture : SqlCeTest
{
private void WithConfiguredIndexers()
{

View File

@ -24,7 +24,7 @@ namespace NzbDrone.Core.Test.IndexerTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class NzbxFixture : CoreTest
public class NzbxFixture : SqlCeTest
{
[Test]
public void should_get_size_when_parsing_recent_feed()

View File

@ -16,7 +16,7 @@ using PetaPoco;
namespace NzbDrone.Core.Test.Integeration
{
[TestFixture(Category = "ServiceIngeneration")]
public class ServiceIntegerationFixture : CoreTest
public class ServiceIntegerationFixture : SqlCeTest
{
private IContainer _container;

View File

@ -17,7 +17,7 @@ using NzbDrone.Test.Common;
namespace NzbDrone.Core.Test.JobTests
{
[TestFixture]
internal class AppUpdateJobFixture : CoreTest
internal class AppUpdateJobFixture : SqlCeTest
{
private const string SANDBOX_FOLDER = @"C:\Temp\nzbdrone_update\";

View File

@ -18,7 +18,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.JobTests
{
[TestFixture]
public class BacklogSearchJobTest : CoreTest
public class BacklogSearchJobTest : SqlCeTest
{
private void WithEnableBacklogSearching()
{

View File

@ -16,7 +16,7 @@ namespace NzbDrone.Core.Test.JobTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class BannerDownloadJobTest : CoreTest
public class BannerDownloadJobTest : SqlCeTest
{
private ProgressNotification _notification;

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Core.Test.JobTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class DiskScanJobTest : CoreTest
public class DiskScanJobTest : SqlCeTest
{
[Test]
public void series_specific_scan_should_scan_series()

View File

@ -10,7 +10,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.JobTests
{
[TestFixture]
public class EpisodeSearchJobTest:CoreTest
public class EpisodeSearchJobTest:SqlCeTest
{
[TestCase(0)]
[TestCase(-1)]

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Core.Test.JobTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class ImportNewSeriesJobTest : CoreTest
public class ImportNewSeriesJobTest : SqlCeTest
{
[Test]
public void import_new_series_succesful()

View File

@ -17,7 +17,7 @@ using NzbDrone.Test.Common;
namespace NzbDrone.Core.Test.JobTests
{
[TestFixture]
internal class PostDownloadScanJobFixture : CoreTest
internal class PostDownloadScanJobFixture : SqlCeTest
{
[SetUp]
public void Setup()

View File

@ -19,7 +19,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.JobTests
{
[TestFixture]
public class RecentBacklogSearchJobTest : CoreTest
public class RecentBacklogSearchJobTest : SqlCeTest
{
private void WithEnableBacklogSearching()
{

View File

@ -14,7 +14,7 @@ namespace NzbDrone.Core.Test.JobTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class RssSyncJobTest : CoreTest
public class RssSyncJobTest : SqlCeTest
{
public void WithMinutes(int minutes)
{

View File

@ -19,7 +19,7 @@ namespace NzbDrone.Core.Test.JobTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class SeasonSearchJobTest : CoreTest
public class SeasonSearchJobTest : SqlCeTest
{
private IList<Episode> _episodes;

View File

@ -13,7 +13,7 @@ namespace NzbDrone.Core.Test.JobTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class SeriesSearchJobTest : CoreTest
public class SeriesSearchJobTest : SqlCeTest
{
[Test]
public void SeriesSearch_success()

View File

@ -246,7 +246,7 @@
<Compile Include="ProviderTests\UpcomingEpisodesProviderTest.cs" />
<Compile Include="ProviderTests\MediaFileProviderTests\GetNewFilenameFixture.cs" />
<Compile Include="dbBenchmark.cs" />
<Compile Include="Framework\CoreTest.cs" />
<Compile Include="Framework\SqlCeTest.cs" />
<Compile Include="ProviderTests\DecisionEngineTests\MonitoredEpisodeSpecificationFixture.cs" />
<Compile Include="ProviderTests\DownloadProviderTests\DownloadProviderFixture.cs" />
<Compile Include="EpisodeStatusTest.cs" />

View File

@ -14,7 +14,7 @@ namespace NzbDrone.Core.Test.ParserTests
{
// ReSharper disable InconsistentNaming
[TestFixture]
public class ParserFixture : CoreTest
public class ParserFixture : SqlCeTest
{
/*Fucked-up hall of shame,
* WWE.Wrestlemania.27.PPV.HDTV.XviD-KYR

View File

@ -11,7 +11,7 @@ namespace NzbDrone.Core.Test.ParserTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class QualityParserFixture : CoreTest
public class QualityParserFixture : SqlCeTest
{
public static object[] QualityParserCases =
{

View File

@ -19,7 +19,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class BannerProviderTest : CoreTest
public class BannerProviderTest : SqlCeTest
{
private Series _series;

View File

@ -11,7 +11,7 @@ using PetaPoco;
namespace NzbDrone.Core.Test.ProviderTests.ConfigProviderTests
{
[TestFixture]
public class ConfigCachingFixture : CoreTest
public class ConfigCachingFixture : SqlCeTest
{
[SetUp]
public void Setup()

View File

@ -10,7 +10,7 @@ namespace NzbDrone.Core.Test.ProviderTests.ConfigProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class ConfigProviderFixture : CoreTest
public class ConfigProviderFixture : SqlCeTest
{
[SetUp]
public void SetUp()

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class AcceptableSizeSpecificationFixture : CoreTest
public class AcceptableSizeSpecificationFixture : SqlCeTest
{
private EpisodeParseResult parseResultMulti;
private EpisodeParseResult parseResultSingle;

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class AllowedDownloadSpecificationFixture : CoreTest
public class AllowedDownloadSpecificationFixture : SqlCeTest
{
private AllowedDownloadSpecification spec;
private EpisodeParseResult parseResult;

View File

@ -19,7 +19,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class AllowedReleaseGroupSpecificationFixture : CoreTest
public class AllowedReleaseGroupSpecificationFixture : SqlCeTest
{
private EpisodeParseResult parseResult;

View File

@ -17,7 +17,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class CustomStartDateSpecificationFixture : CoreTest
public class CustomStartDateSpecificationFixture : SqlCeTest
{
private CustomStartDateSpecification _customStartDateSpecification;

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class LanguageSpecificationFixture : CoreTest
public class LanguageSpecificationFixture : SqlCeTest
{
private EpisodeParseResult parseResult;

View File

@ -17,7 +17,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class MonitoredEpisodeSpecificationFixture : CoreTest
public class MonitoredEpisodeSpecificationFixture : SqlCeTest
{
private MonitoredEpisodeSpecification monitoredEpisodeSpecification;

View File

@ -15,7 +15,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class QualityAllowedByProfileSpecificationFixture : CoreTest
public class QualityAllowedByProfileSpecificationFixture : SqlCeTest
{
private QualityAllowedByProfileSpecification _qualityAllowedByProfile;
private EpisodeParseResult parseResult;

View File

@ -12,7 +12,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class QualityUpgradeSpecificationFixture : CoreTest
public class QualityUpgradeSpecificationFixture : SqlCeTest
{
public static object[] IsUpgradeTestCases =
{

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class RetentionSpecificationFixture : CoreTest
public class RetentionSpecificationFixture : SqlCeTest
{
private RetentionSpecification retentionSpecification;

View File

@ -17,7 +17,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class UpgradeDiskSpecificationFixture : CoreTest
public class UpgradeDiskSpecificationFixture : SqlCeTest
{
private UpgradeDiskSpecification _upgradeDisk;

View File

@ -16,7 +16,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class UpgradeHistorySpecificationFixture : CoreTest
public class UpgradeHistorySpecificationFixture : SqlCeTest
{
private UpgradeHistorySpecification _upgradeHistory;

View File

@ -15,7 +15,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DecisionEngineTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class UpgradePossibleSpecificationFixture : CoreTest
public class UpgradePossibleSpecificationFixture : SqlCeTest
{
private void WithWebdlCutoff()
{

View File

@ -7,7 +7,7 @@ using System.IO;
namespace NzbDrone.Core.Test.ProviderTests.DiskProviderTests
{
[TestFixture]
public class ExtractArchiveFixture : CoreTest
public class ExtractArchiveFixture : SqlCeTest
{
[Test]
public void Should_extract_to_correct_folder()

View File

@ -15,7 +15,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests.DiskProviderTests
{
[TestFixture]
public class FreeDiskSpaceTest : CoreTest
public class FreeDiskSpaceTest : SqlCeTest
{
[Test]
public void should_return_free_disk_space()

View File

@ -20,7 +20,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests
{
// ReSharper disable InconsistentNaming
public class CleanUpDropFolderFixture : CoreTest
public class CleanUpDropFolderFixture : SqlCeTest
{
[Test]
public void should_do_nothing_if_no_files_are_found()

View File

@ -20,7 +20,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests
{
// ReSharper disable InconsistentNaming
public class CleanUpFixture : CoreTest
public class CleanUpFixture : SqlCeTest
{
[Test]
public void should_skip_existing_files()

View File

@ -20,7 +20,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests
{
// ReSharper disable InconsistentNaming
public class GetVideoFilesFixture : CoreTest
public class GetVideoFilesFixture : SqlCeTest
{
private string[] _files;

View File

@ -18,7 +18,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests
{
// ReSharper disable InconsistentNaming
public class ImportFileFixture : CoreTest
public class ImportFileFixture : SqlCeTest
{
public static object[] ImportTestCases =
{

View File

@ -20,7 +20,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests
{
// ReSharper disable InconsistentNaming
public class MoveEpisodeFileFixture : CoreTest
public class MoveEpisodeFileFixture : SqlCeTest
{
[Test]
public void should_not_move_file_if_source_and_destination_are_the_same_path()

View File

@ -20,7 +20,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests
{
// ReSharper disable InconsistentNaming
public class ScanFixture : CoreTest
public class ScanFixture : SqlCeTest
{
[Test]
public void series_should_update_the_last_scan_date()

View File

@ -16,7 +16,7 @@ using NzbDrone.Test.Common;
namespace NzbDrone.Core.Test.ProviderTests.DownloadClientTests
{
[TestFixture]
public class BlackholeProviderFixture : CoreTest
public class BlackholeProviderFixture : SqlCeTest
{
private const string nzbUrl = "http://www.nzbs.com/url";
private const string title = "some_nzb_title";

View File

@ -16,7 +16,7 @@ using NzbDrone.Test.Common;
namespace NzbDrone.Core.Test.ProviderTests.DownloadClientTests
{
[TestFixture]
public class PneumaticProviderFixture : CoreTest
public class PneumaticProviderFixture : SqlCeTest
{
private const string nzbUrl = "http://www.nzbs.com/url";
private const string title = "30.Rock.S01E05.hdtv.xvid-LoL";

View File

@ -21,7 +21,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DownloadClientTests.SabProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class QueueFixture : CoreTest
public class QueueFixture : SqlCeTest
{
[SetUp]
public void Setup()

View File

@ -23,7 +23,7 @@ namespace NzbDrone.Core.Test.ProviderTests.DownloadClientTests.SabProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class SabProviderFixture : CoreTest
public class SabProviderFixture : SqlCeTest
{
private const string url = "http://www.nzbclub.com/nzb_download.aspx?mid=1950232";
private const string title = "My Series Name - 5x2-5x3 - My title [Bluray720p] [Proper]";

View File

@ -13,7 +13,7 @@ using NzbDrone.Core.Test.Framework;
namespace NzbDrone.Core.Test.ProviderTests.DownloadProviderTests
{
[TestFixture]
public class ContainsRecentEpisode : CoreTest
public class ContainsRecentEpisode : SqlCeTest
{
private Episode _recentEpisode;
private Episode _oldEpisode;

View File

@ -18,7 +18,7 @@ using NzbDrone.Core.Test.Framework;
namespace NzbDrone.Core.Test.ProviderTests.DownloadProviderTests
{
[TestFixture]
public class DownloadProviderFixture : CoreTest
public class DownloadProviderFixture : SqlCeTest
{
public static object[] SabNamingCases =
{

View File

@ -20,7 +20,7 @@ namespace NzbDrone.Core.Test.ProviderTests.EpisodeProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class EpisodeProviderTest : CoreTest
public class EpisodeProviderTest : SqlCeTest
{
[Test]
public void GetEpisodes_exists()

View File

@ -14,7 +14,7 @@ namespace NzbDrone.Core.Test.ProviderTests.EpisodeProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class EpisodeProviderTest_DeleteInvalidEpisodes : CoreTest
public class EpisodeProviderTest_DeleteInvalidEpisodes : SqlCeTest
{
[Test]
public void Delete_None_Valid_TvDbEpisodeId()

View File

@ -16,7 +16,7 @@ namespace NzbDrone.Core.Test.ProviderTests.EpisodeProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class EpisodeProviderTest_GetEpisodesByParseResult : CoreTest
public class EpisodeProviderTest_GetEpisodesByParseResult : SqlCeTest
{
private EpisodeProvider episodeProvider;

View File

@ -12,7 +12,7 @@ namespace NzbDrone.Core.Test.ProviderTests.EpisodeProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class GetEpisodeBySceneNumberFixture : CoreTest
public class GetEpisodeBySceneNumberFixture : SqlCeTest
{
private Series _series;
private Episode _episode;

View File

@ -13,7 +13,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class EventClientProviderTest : CoreTest
public class EventClientProviderTest : SqlCeTest
{
[Test]
public void SendNotification_true()

View File

@ -17,7 +17,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[Explicit]
[TestFixture]
public class GrowlProviderTest : CoreTest
public class GrowlProviderTest : SqlCeTest
{
[Test]
public void Register_should_add_new_application_to_local_growl_instance()

View File

@ -12,7 +12,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class HistoryProviderTest : CoreTest
public class HistoryProviderTest : SqlCeTest
{
[Test]
public void AllItems()

View File

@ -19,7 +19,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class IndexerProviderTest : CoreTest
public class IndexerProviderTest : SqlCeTest
{
[Test]
public void Init_indexer_test()

View File

@ -19,7 +19,7 @@ namespace NzbDrone.Core.Test.ProviderTests.JobProviderTests
{
[TestFixture]
[ExclusivelyUses("JOB_PROVIDER")]
public class JobProviderFixture : CoreTest
public class JobProviderFixture : SqlCeTest
{
FakeJob fakeJob;

View File

@ -15,7 +15,7 @@ using NzbDrone.Test.Common;
namespace NzbDrone.Core.Test.ProviderTests.LogProviderTests
{
[TestFixture]
public class LogProviderFixture : CoreTest
public class LogProviderFixture : SqlCeTest
{
private const string LOGGER_NAME = "Core.Test.ProviderTests.LogProviderTests.LogProviderFixture";

View File

@ -20,7 +20,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class MediaFileProviderTest : CoreTest
public class MediaFileProviderTest : SqlCeTest
{
[Test]
public void get_series_files()

View File

@ -15,7 +15,7 @@ using NzbDrone.Core.Test.Framework;
namespace NzbDrone.Core.Test.ProviderTests.MediaFileProviderTests
{
[TestFixture]
public class CleanUpDatabaseFixture : CoreTest
public class CleanUpDatabaseFixture : SqlCeTest
{
[SetUp]

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Core.Test.ProviderTests.MediaFileProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class MediaFileProvider_GetNewFilenameTest : CoreTest
public class MediaFileProvider_GetNewFilenameTest : SqlCeTest
{
private Series _series;

View File

@ -24,7 +24,7 @@ namespace NzbDrone.Core.Test.ProviderTests.Metadata
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class Xbmc_ForEpisoddeFile_Fixture : CoreTest
public class Xbmc_ForEpisoddeFile_Fixture : SqlCeTest
{
private Series series;
private EpisodeFile episodeFile;

View File

@ -23,7 +23,7 @@ namespace NzbDrone.Core.Test.ProviderTests.Metadata
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class Xbmc_ForSeries_Fixture : CoreTest
public class Xbmc_ForSeries_Fixture : SqlCeTest
{
private Series series;
private TvdbSeries tvdbSeries;

View File

@ -13,7 +13,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
public class MisnamedProviderTest : CoreTest
public class MisnamedProviderTest : SqlCeTest
{
[Test]
public void no_misnamed_files()

View File

@ -14,7 +14,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class NewznabProviderTest : CoreTest<NewznabProvider>
public class NewznabProviderTest : SqlCeTest<NewznabProvider>
{
[SetUp]
public void SetUp()

View File

@ -22,7 +22,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class PlexProviderTest : CoreTest
public class PlexProviderTest : SqlCeTest
{
private void WithSingleClient()
{

View File

@ -13,7 +13,7 @@ namespace NzbDrone.Core.Test.ProviderTests.PostDownloadProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class GetFolderNameWithStatusFixture : CoreTest
public class GetFolderNameWithStatusFixture : SqlCeTest
{
[TestCase(@"c:\_NzbDrone_InvalidEpisode_Title", @"c:\_UnknownSeries_Title", PostDownloadStatusType.UnknownSeries)]
[TestCase(@"c:\Title", @"c:\_Failed_Title", PostDownloadStatusType.Failed)]

View File

@ -18,7 +18,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests.PostDownloadProviderTests
{
[TestFixture]
public class ProcessDownloadFixture : CoreTest
public class ProcessDownloadFixture : SqlCeTest
{
Series fakeSeries;

View File

@ -18,7 +18,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests.PostDownloadProviderTests
{
[TestFixture]
public class ProcessDropDirectoryFixture : CoreTest
public class ProcessDropDirectoryFixture : SqlCeTest
{
Series fakeSeries;

View File

@ -18,7 +18,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests.PostDownloadProviderTests
{
[TestFixture]
public class ProcessVideoFileFixture : CoreTest
public class ProcessVideoFileFixture : SqlCeTest
{
Series fakeSeries;

View File

@ -19,7 +19,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[Explicit]
[TestFixture]
public class ProwlProviderTest : CoreTest
public class ProwlProviderTest : SqlCeTest
{
private const string _apiKey = "c3bdc0f48168f72d546cc6872925b160f5cbffc1";
private const string _apiKey2 = "46a710a46b111b0b8633819b0d8a1e0272a3affa";

View File

@ -14,7 +14,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class QualityTypeProviderTest : CoreTest
public class QualityTypeProviderTest : SqlCeTest
{
[SetUp]
public void SetuUp()

View File

@ -24,7 +24,7 @@ namespace NzbDrone.Core.Test.ProviderTests.RecycleBinProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class CleanupFixture : CoreTest
public class CleanupFixture : SqlCeTest
{
private const string RecycleBin = @"C:\Test\RecycleBin";

View File

@ -24,7 +24,7 @@ namespace NzbDrone.Core.Test.ProviderTests.RecycleBinProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class DeleteDirectoryFixture : CoreTest
public class DeleteDirectoryFixture : SqlCeTest
{
private void WithRecycleBin()
{

View File

@ -24,7 +24,7 @@ namespace NzbDrone.Core.Test.ProviderTests.RecycleBinProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class DeleteFileFixture : CoreTest
public class DeleteFileFixture : SqlCeTest
{
private void WithRecycleBin()
{

View File

@ -24,7 +24,7 @@ namespace NzbDrone.Core.Test.ProviderTests.RecycleBinProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class EmptyFixture : CoreTest
public class EmptyFixture : SqlCeTest
{
private const string RecycleBin = @"C:\Test\RecycleBin";

View File

@ -16,7 +16,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class ReferenceDataProviderTest : CoreTest
public class ReferenceDataProviderTest : SqlCeTest
{
private const string validSeriesIds = "[1,2,3,4,5]";
private const string invalidSeriesIds = "[1,2,NaN,4,5]";

View File

@ -21,7 +21,7 @@ namespace NzbDrone.Core.Test.ProviderTests.RootDirProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class FreeSpaceOnDrivesFixture : CoreTest
public class FreeSpaceOnDrivesFixture : SqlCeTest
{
[Test]
public void should_return_one_drive_when_only_one_root_dir_exists()

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Core.Test.ProviderTests.RootDirProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class RootDirProviderFixture : CoreTest
public class RootDirProviderFixture : SqlCeTest
{
[SetUp]
public void Setup()

View File

@ -16,7 +16,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class SceneMappingProviderTest : CoreTest
public class SceneMappingProviderTest : SqlCeTest
{
private const string SceneMappingUrl = "http://services.nzbdrone.com/SceneMapping/Active";

View File

@ -21,7 +21,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class SearchHistoryProviderTest : CoreTest
public class SearchHistoryProviderTest : SqlCeTest
{
private SearchHistory _searchHistory;
private Series _series;

View File

@ -22,7 +22,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class SeasonProviderTest : CoreTest
public class SeasonProviderTest : SqlCeTest
{
[SetUp]
public void Setup()

View File

@ -15,7 +15,7 @@ using NzbDrone.Core.Test.Framework;
namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
public class SeriesProviderTest : CoreTest
public class SeriesProviderTest : SqlCeTest
{
private IList<QualityProfile> _qualityProfiles;

View File

@ -17,7 +17,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class TvDbProviderTest : CoreTest
public class TvDbProviderTest : SqlCeTest
{
private TvDbProvider tvDbProvider;

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Core.Test.ProviderTests.TvRageProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class GetSeriesFixture : CoreTest
public class GetSeriesFixture : SqlCeTest
{
private const string showinfo = "http://services.tvrage.com/feeds/showinfo.php?key=NW4v0PSmQIoVmpbASLdD&sid=";

View File

@ -16,7 +16,7 @@ namespace NzbDrone.Core.Test.ProviderTests.TvRageProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class GetUtcOffsetFixture : CoreTest
public class GetUtcOffsetFixture : SqlCeTest
{
[Test]
public void should_return_zero_if_timeZone_is_empty()

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Core.Test.ProviderTests.TvRageProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class SearchSeriesFixture : CoreTest
public class SearchSeriesFixture : SqlCeTest
{
private const string search = "http://services.tvrage.com/feeds/full_search.php?show=";

View File

@ -13,7 +13,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
public class UpcomingEpisodesProviderTest : CoreTest
public class UpcomingEpisodesProviderTest : SqlCeTest
{
private IList<Episode> episodes;
private Series series;

View File

@ -11,7 +11,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.ProviderTests.UpdateProviderTests
{
class GetAvilableUpdateFixture : CoreTest
class GetAvilableUpdateFixture : SqlCeTest
{
private static Version _latestsTestVersion = new Version("0.6.0.3");
private static string _latestsTestUrl = "http://update.nzbdrone.com/_test/NzbDrone.master.0.6.0.3.zip";

View File

@ -9,7 +9,7 @@ using NzbDrone.Core.Test.Framework;
namespace NzbDrone.Core.Test.ProviderTests.UpdateProviderTests
{
class GetUpdateLogFixture : CoreTest
class GetUpdateLogFixture : SqlCeTest
{
String UpdateLogFolder;

View File

@ -19,7 +19,7 @@ namespace NzbDrone.Core.Test.ProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class XbmcProviderTest : CoreTest
public class XbmcProviderTest : SqlCeTest
{
private string EdenActivePlayers;

View File

@ -19,7 +19,7 @@ namespace NzbDrone.Core.Test.ProviderTests.XemCommunicationProviderTests
{
[TestFixture]
// ReSharper disable InconsistentNaming
public class GetSceneTvdbMappingsFixture : CoreTest
public class GetSceneTvdbMappingsFixture : SqlCeTest
{
private void WithFailureJson()
{

Some files were not shown because too many files have changed in this diff Show More