public void EvaluateScriptTest(string script, object result) { using (var fixture = new Fixture()) { fixture.Initialize().Wait(); Assert.Equal(result, fixture.Browser.EvaluateScript(script)); } }
public void EvaluateScriptExceptionTest(string script) { using (var fixture = new Fixture()) { fixture.Initialize().Wait(); Assert.Throws <ScriptException>(() => fixture.Browser.EvaluateScript(script)); } }
public void EvaluateScriptExceptionTest(string script) { using (var fixture = new Fixture()) { fixture.Initialize().Wait(); Assert.Throws<ScriptException>(() => fixture.Browser.EvaluateScript(script)); } }
public void EvaluateScriptExceptionTest(string script) { using (var fixture = new Fixture()) { fixture.Initialize().Wait(); var task = fixture.Browser.EvaluateScriptAsync(script); task.Wait(); Assert.Throws<ScriptException>(() => task.Result); } }
public void EvaluateScriptExceptionTest(string script) { using (var fixture = new Fixture()) { fixture.Initialize().Wait(); var task = fixture.Browser.EvaluateScriptAsync(script); task.Wait(); Assert.Throws <ScriptException>(() => task.Result); } }