mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
trying to fix nunit in teamcity.
This commit is contained in:
parent
f278c7f230
commit
f65f4ff988
@ -33,6 +33,8 @@ private EnvironmentProvider GetEnvironmentProvider()
|
||||
[TestCase(@"\\Testserver\Test\file.ext \\", @"\\Testserver\Test\file.ext")]
|
||||
public void Normalize_Path_Windows(string dirty, string clean)
|
||||
{
|
||||
WindowsOnly();
|
||||
|
||||
var result = dirty.CleanPath();
|
||||
result.Should().Be(clean);
|
||||
}
|
||||
@ -46,6 +48,8 @@ public void Normalize_Path_Windows(string dirty, string clean)
|
||||
[TestCase(@"//CAPITAL//lower// ", @"/CAPITAL/lower")]
|
||||
public void Normalize_Path_Linux(string dirty, string clean)
|
||||
{
|
||||
LinuxOnly();
|
||||
|
||||
var result = dirty.CleanPath();
|
||||
result.Should().Be(clean);
|
||||
}
|
||||
|
@ -41,7 +41,8 @@ public void LoggingTestSetup()
|
||||
[TearDown]
|
||||
public void LoggingDownBase()
|
||||
{
|
||||
if (TestContext.CurrentContext.Result.State == TestState.Failure || TestContext.CurrentContext.Result.State == TestState.Error)
|
||||
|
||||
//if (TestContext.CurrentContext.Result.State == TestState.Failure || TestContext.CurrentContext.Result.State == TestState.Error)
|
||||
{
|
||||
ExceptionVerification.AssertNoUnexcpectedLogs();
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ public void TestBaseTearDown()
|
||||
{
|
||||
}
|
||||
|
||||
if (TestContext.CurrentContext.Result.State == TestState.Failure || TestContext.CurrentContext.Result.State == TestState.Error)
|
||||
/* if (TestContext.CurrentContext.Result.State == TestState.Failure || TestContext.CurrentContext.Result.State == TestState.Error)
|
||||
{
|
||||
var testName = TestContext.CurrentContext.Test.Name.ToLower();
|
||||
|
||||
@ -115,6 +115,23 @@ public void TestBaseTearDown()
|
||||
{
|
||||
throw new IgnoreException("linux specific test");
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
protected void WindowsOnly()
|
||||
{
|
||||
if (EnvironmentProvider.IsLinux)
|
||||
{
|
||||
throw new IgnoreException("windows specific test");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected void LinuxOnly()
|
||||
{
|
||||
if (!EnvironmentProvider.IsLinux)
|
||||
{
|
||||
throw new IgnoreException("linux specific test");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user