Exemplo n.º 1
0
        public void ShutdownTest()
        {
            FluentJScript fj1 = new FluentJScript();

            fj1.Shutdown();
            Assert.IsNull(fj1.ToObject());
        }
Exemplo n.º 2
0
        public void FluentJScriptTest()
        {
            FluentJScript fj1 = new FluentJScript();
            FluentJScript fj2 = new FluentJScript();

            Assert.AreEqual(fj1.ToObject(), fj2.ToObject());
        }
Exemplo n.º 3
0
        public void ToObjectTest()
        {
            FluentJScript fj1 = new FluentJScript();

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