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