Ejemplo n.º 1
0
 public void JsCommandExecute_Failure()
 {
     var js = new JsCommand();
     Assert.IsTrue(
         js.Execute(null, this.GetFakeSkypeChat(), "eva js you shall not parse!") == "Sorry, couldn't parse.");
 }
Ejemplo n.º 2
0
 public void JsCommandExecute_Success()
 {
     var js = new JsCommand();
     Assert.IsTrue(js.Execute(null, this.GetFakeSkypeChat(), "eva js var x = 3, y = 6; x *= y; x;") == "18");
 }
Ejemplo n.º 3
0
 public void JsCommandExecuteWithTrim_Success()
 {
     var js = new JsCommand();
     Assert.IsTrue(js.Execute(null, this.GetFakeSkypeChat(), " eva js  var x = 1 * 2 * 3 + 4; x;") == "10");
 }