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

RubyBlocks14B() public method

Covers RubyOps.YieldBlockBreak.
public RubyBlocks14B ( ) : void
return void
        public void RubyBlocks14B() {
            TestOutput(@"
def proc_conv(&b)
  1.times { puts 'yielding'; yield }
end

def foo
  proc_conv { puts 'breaking'; break }
end

foo
", @"
yielding
breaking
");
        }
Tests