1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 10:32:35 +01:00
Radarr/NzbDrone.Core.Test/Framework/Fixtures.cs

26 lines
569 B
C#
Raw Normal View History

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