Skip to content

Commit bb1faaf

Browse files
committed
[dotnet] Fix build break in tests
1 parent 2630032 commit bb1faaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnet/test/common/SessionHandlingTest.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void CallingAnyOperationAfterClosingTheLastWindowShouldThrowAnException()
4646
string url = string.Empty;
4747
testDriver.Url = simpleTestPage;
4848
testDriver.Close();
49-
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");
49+
Assert.That(() => testDriver.Url == formsPage, Throws.InstanceOf<WebDriverException>().Or.InstanceOf<InvalidOperationException>());
5050
}
5151
finally
5252
{
@@ -65,7 +65,7 @@ public void CallingAnyOperationAfterQuitShouldThrowAnException()
6565
string url = string.Empty;
6666
testDriver.Url = simpleTestPage;
6767
testDriver.Quit();
68-
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");
68+
Assert.That(() => testDriver.Url == formsPage, Throws.InstanceOf<WebDriverException>().Or.InstanceOf<InvalidOperationException>());
6969
}
7070
finally
7171
{

0 commit comments

Comments
 (0)