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

            AssertEquals(ints.Length, 1);
            AssertEquals(ints[0], 1);

            ints = YieldClass.LabeledStatementGotoFirst(false).ToArray();
            AssertEquals(ints.Length, 2);
            AssertEquals(ints[0], 1);
            AssertEquals(ints[1], 2);
        }