Skip to content

Commit 27e2dd8

Browse files
committed
Derp, logic error in test
1 parent dfd9e9e commit 27e2dd8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

CSF.Extensions.WebDriver.Tests/Factories/WebDriverFromOptionsFactoryTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ public void GetWebDriverShouldCreateALocalChromeDriverFromAppropriateOptions([St
3030
{
3131
if(invOpEx.Message.StartsWith("session not created:"))
3232
Assert.Pass("Despite the exception raised, this is only because the wrong version of the driver is installed on the environment running the test; this is more than enough to prove that the driver was being created.");
33-
throw;
33+
else
34+
throw;
3435
}
3536
catch(InvalidOperationException invOpEx)
3637
{
3738
if(invOpEx.Message.StartsWith("session not created:"))
3839
Assert.Pass("Despite the exception raised, this is only because the wrong version of the driver is installed on the environment running the test; this is more than enough to prove that the driver was being created.");
39-
throw;
40+
else
41+
throw;
4042
}
4143
}
4244

0 commit comments

Comments
 (0)