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

            AssertEquals(ints.Length, 6);
            AssertEquals(ints[0], 0);
            AssertEquals(ints[1], 1);
            AssertEquals(ints[2], 0);
            AssertEquals(ints[3], 1);
            AssertEquals(ints[4], 2);
            AssertEquals(ints[5], 1);
        }