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

RubyBlocks9() public method

Next in a block.
public RubyBlocks9 ( ) : void
return void
        public void RubyBlocks9() {
            AssertOutput(delegate() {
                CompilerTest(@"
i = 0
x = 5.times { |x|
  puts x
  i = i + 1  
  if i < 3 then next end
  puts 'bar'
}
");
            }, @"
0
1
2
bar
3
bar
4
bar
");
        }
Tests