示例#1
0
        public void ExecuteDeferred()
        {
            var TestScriptEngine = new Scripts();
            var Enumerable       = new EnumerableClass();

            TestScriptEngine.Enqueue(Enumerable.YieldOnce(), "");
            Assert.IsFalse(Enumerable.Yielded);
            TestScriptEngine.Update();
            Assert.IsTrue(Enumerable.Yielded);
            TestScriptEngine.Update();
            Assert.AreEqual(0, TestScriptEngine.ScriptCollection.Count);
        }