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

Scenario_RubyScopes3() public method

Tests that variables defined in module/class locals scope are not visible outside.
public Scenario_RubyScopes3 ( ) : void
return void
        public void Scenario_RubyScopes3() {
            AssertOutput(delegate() {
                CompilerTest(@"
y = 'var'
class C
    x = 'var'
end

def x; 'method'; end
def y; 'method'; end

puts x
puts y
");
            }, @"
method
var");
        }
Tests