Evaluate() public method

public Evaluate ( string script ) : dynamic
script string
return dynamic
 public void Invoking_JContext_object_runs_scripts_passed()
 {
     dynamic context = new JContext();
     context("Test1 = 'test1'", "Test2 = 2");
     Assert.AreEqual("test1", context.Evaluate("Test1"));
     Assert.AreEqual(2, context.Evaluate("Test2"));
 }
 public void Evaluate_parses_and_returns_scalars()
 {
     JContext context = new JContext();
     Assert.AreEqual("testvalue", context.Evaluate("var test = 'testvalue'; test"));
     Assert.AreEqual(1, context.Evaluate("var test = 1; test"));
     Assert.IsTrue(context.Evaluate("var test = true; test"));
 }
 public void Setting_property_sets_global_variable()
 {
     dynamic context = new JContext();
     context.Test = "test1";
     Assert.AreEqual("test1", context.Evaluate("Test"));
 }