예제 #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.");
 }
예제 #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");
 }
예제 #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");
 }