Exemple #1
0
        public void foreach_find_closer_nonnested()
        {
            var @input = @"%
                    Console.WriteLine("");
                %
                ";

            ForeachExpression.FindCloser(1, input).Should().Be(62);
        }
Exemple #2
0
        public void foreach_find_closer_nested()
        {
            var @input = @"%
                    #a = 5
                    %foreach range(3)%
                    //#(#1+#101)
                    %
                    Console.WriteLine("");
                %
                ";

            ForeachExpression.FindCloser(1, input).Should().Be(187);
        }