cleaned up test db path for tests.

This commit is contained in:
Keivan Beigi 2013-06-27 18:03:04 -07:00
parent 02c175950b
commit dde91569ac
15 changed files with 123 additions and 133 deletions

View file

@ -105,22 +105,11 @@ namespace NzbDrone.Test.Common
catch (Exception)
{
}
/* if (TestContext.CurrentContext.Result.State == TestState.Failure || TestContext.CurrentContext.Result.State == TestState.Error)
{
var testName = TestContext.CurrentContext.Test.Name.ToLower();
if (IAppDirectoryInfo.IsLinux && testName.Contains("windows"))
{
throw new IgnoreException("windows specific test");
}
else if (testName.Contains("linux"))
{
throw new IgnoreException("linux specific test");
}
}*/
}
protected IAppDirectoryInfo TestDirectoryInfo { get; private set; }
protected void WindowsOnly()
{
if (OsInfo.IsLinux)
@ -143,6 +132,8 @@ namespace NzbDrone.Test.Common
Mocker.GetMock<IAppDirectoryInfo>()
.SetupGet(c => c.WorkingDirectory)
.Returns(VirtualPath);
TestDirectoryInfo = Mocker.GetMock<IAppDirectoryInfo>().Object;
}
protected string GetTestFilePath(string fileName)