Esempio n. 1
0
 public void EvaluateScriptTest(string script, object result)
 {
     using (var fixture = new Fixture())
     {
         fixture.Initialize().Wait();
         Assert.Equal(result, fixture.Browser.EvaluateScript(script));
     }
 }
Esempio n. 2
0
 public void EvaluateScriptExceptionTest(string script)
 {
     using (var fixture = new Fixture())
     {
         fixture.Initialize().Wait();
         Assert.Throws<ScriptException>(() =>
             fixture.Browser.EvaluateScript(script));
     }
 }
Esempio n. 3
0
 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);
     }
 }