IronRuby.Tests.Tests.RubyBlocks10A C# (CSharp) Method

RubyBlocks10A() public method

Retry in a block.
public RubyBlocks10A ( ) : void
return void
        public void RubyBlocks10A() {
            AssertOutput(delegate() {
                CompilerTest(@"
i = 0
3.times { |x| 
  puts x
  i = i + 1
  if i == 2 then retry end
}
");
            }, @"
0
1
0
1
2
");
        }
Tests