public void When_alert_button_clicked_Then_alert_dialog_pops_up_and_dismiss_closes_it()
{
Threaded<Session>
.CurrentBlock<DialogPage>()
.VerifyThat(x => x.AlertResult.Should().Be("Not Clicked"))
.AlertButton.Click()
.VerifyThat(x => x.Text.Should().Be("alert"))
.Dismiss<DialogPage>()
.VerifyThat(x => x.AlertResult.Should().Be("Clicked"));
}