public void CheckIfTitle_Exception() { ExpectException(typeof(BrowserException)); RunInAllBrowsers(browser => { browser.NavigateToUrl(); AssertUI.CheckIfTitle(browser, c => c == "This is not title"); }); }