Esempio n. 1
0
        public void ToStringTest()
        {
            FluentJScript fj1 = new FluentJScript();

            fj1.Execute("1+1;");
            Assert.AreEqual(fj1.ToString(), "2");
        }
Esempio n. 2
0
        public void ToObjectTest()
        {
            FluentJScript fj1 = new FluentJScript();

            fj1.AddScript("1+1;");
            fj1.Execute();
            Assert.AreEqual(String.Format("{0}", fj1.ToObject()), "2");
        }