Skip to content

Commit

Permalink
[dotnet] Fix build break in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Aug 31, 2023
1 parent 2630032 commit bb1faaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotnet/test/common/SessionHandlingTest.cs
Expand Up @@ -46,7 +46,7 @@ public void CallingAnyOperationAfterClosingTheLastWindowShouldThrowAnException()
string url = string.Empty;
testDriver.Url = simpleTestPage;
testDriver.Close();
Assert.That(() => url = testDriver.Url, Throws.InstanceOf<WebDriverException>().Or.InstanceOf<InvalidOperationException>(), "Should not be able to access Url property after close of only open window");
Assert.That(() => testDriver.Url == formsPage, Throws.InstanceOf<WebDriverException>().Or.InstanceOf<InvalidOperationException>());
}
finally
{
Expand All @@ -65,7 +65,7 @@ public void CallingAnyOperationAfterQuitShouldThrowAnException()
string url = string.Empty;
testDriver.Url = simpleTestPage;
testDriver.Quit();
Assert.That(() => url = testDriver.Url, Throws.InstanceOf<WebDriverException>().Or.InstanceOf<InvalidOperationException>(), "Should not be able to access Url property after close of only open window");
Assert.That(() => testDriver.Url == formsPage, Throws.InstanceOf<WebDriverException>().Or.InstanceOf<InvalidOperationException>());
}
finally
{
Expand Down

0 comments on commit bb1faaf

Please sign in to comment.