Example #1
0
 public static TestContext Create()
 {
     var context = new TestContext(){Output = new List<string>()};
     context.SetHostFunction("print", (scope, self, args) =>
     {
         string s = string.Join<IJsValue>("", args);
         Console.Out.WriteLine(s);
         context.Output.Add(s);
     });
     return context;
 }