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