Example #1
0
        public void ForLoop()
        {
            var ints = YieldClass.ForLoop().ToArray();

            AssertEquals(ints.Length, 3);
            AssertEquals(ints[0], 0);
            AssertEquals(ints[1], 1);
            AssertEquals(ints[2], 2);
        }
Example #2
0
        public void ForLoop()
        {
            var ints = YieldClass.ForLoop().ToArray();

            QUnit.AreEqual(ints.Length, 3);
            QUnit.AreEqual(ints[0], 0);
            QUnit.AreEqual(ints[1], 1);
            QUnit.AreEqual(ints[2], 2);
        }