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

BEGIN3() private method

private BEGIN3 ( ) : void
return void
        public void BEGIN3() {
            TestOutput(@"
def f1
end

BEGIN {
  def f2
  end
}

class C
  private
  while true
    eval <<-END
      BEGIN {
        def f3
        end
      
        private
      
        break
        puts 'unreachable'
      } 
    END
  end
  
  def f4
  end
end

p self.private_methods(false).include?('f1')
p self.public_methods(false).include?('f2')

p C.public_instance_methods(false).include?('f3')
p C.private_instance_methods(false).include?('f4')
", @"
true
true
true
true
");
        }
#endif
Tests