Fixed a couple tests, so they shouldn't fail due to other tests impacting them.

This commit is contained in:
Mark McDowall 2011-10-17 13:20:09 -07:00
commit f78c5f2124
2 changed files with 13 additions and 7 deletions

View file

@ -19,7 +19,9 @@ namespace NzbDrone.Core.Test
//Reset config file
var mocker = new AutoMoqer();
var configFile = mocker.Resolve<ConfigFileProvider>().ConfigFile;
File.Delete(configFile);
if (File.Exists(configFile))
File.Delete(configFile);
mocker.Resolve<ConfigFileProvider>().CreateDefaultConfigFile();
}