2010-09-30 08:59:00 +02:00
|
|
|
using System.IO;
|
2011-10-24 07:54:09 +02:00
|
|
|
// ReSharper disable CheckNamespace
|
2011-06-02 23:06:46 +02:00
|
|
|
using NUnit.Framework;
|
2011-05-19 05:55:35 +02:00
|
|
|
using NzbDrone.Core.Test.Framework;
|
2011-10-24 07:54:09 +02:00
|
|
|
using NzbDrone.Test.Common;
|
2010-09-30 08:59:00 +02:00
|
|
|
|
2011-10-21 01:42:17 +02:00
|
|
|
[SetUpFixture]
|
2011-10-24 07:54:09 +02:00
|
|
|
public class Fixtures : LoggingFixtures
|
2010-09-30 08:59:00 +02:00
|
|
|
{
|
2011-10-21 01:42:17 +02:00
|
|
|
[SetUp]
|
|
|
|
public void SetUp()
|
|
|
|
{
|
2011-10-24 07:54:09 +02:00
|
|
|
var oldDbFiles = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.sdf", SearchOption.AllDirectories);
|
|
|
|
foreach (var file in oldDbFiles)
|
2010-10-02 21:01:43 +02:00
|
|
|
{
|
2010-10-24 09:46:58 +02:00
|
|
|
try
|
|
|
|
{
|
2011-10-21 01:42:17 +02:00
|
|
|
File.Delete(file);
|
2010-10-24 09:46:58 +02:00
|
|
|
}
|
2011-10-21 01:42:17 +02:00
|
|
|
catch { }
|
2010-10-02 21:01:43 +02:00
|
|
|
}
|
2011-10-21 01:42:17 +02:00
|
|
|
|
|
|
|
MockLib.CreateDataBaseTemplate();
|
2010-09-30 08:59:00 +02:00
|
|
|
}
|
2011-10-21 01:42:17 +02:00
|
|
|
}
|