예제 #1
0
        public void TryFinally()
        {
            var ints = YieldClass.TryFinally().ToArray();

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

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