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

Scenario_RubyScopes1() public method

Tests that class lexical scopes are applied to method definitions.
public Scenario_RubyScopes1 ( ) : void
return void
        public void Scenario_RubyScopes1() {
            AssertOutput(delegate() {
                CompilerTest(@"
class A; def foo; print 'A'; end; end
class B; def foo; print 'B'; end; end
A.new.foo
B.new.foo
");
            }, @"AB");
        }
Tests