Lidarr/NzbDrone.Core.Test/Framework/Fixtures.cs

26 lines
569 B
C#
Raw Normal View History

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;
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
[SetUpFixture]
2011-10-24 05:54:09 +00:00
public class Fixtures : LoggingFixtures
2010-09-30 06:59:00 +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
{
try
{
File.Delete(file);
}
catch { }
2010-10-02 19:01:43 +00:00
}
MockLib.CreateDataBaseTemplate();
2010-09-30 06:59:00 +00:00
}
}