public void ToStringTest() { FluentJScript fj1 = new FluentJScript(); fj1.Execute("1+1;"); Assert.AreEqual(fj1.ToString(), "2"); }
public void ToObjectTest() { FluentJScript fj1 = new FluentJScript(); fj1.AddScript("1+1;"); fj1.Execute(); Assert.AreEqual(String.Format("{0}", fj1.ToObject()), "2"); }