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

RubyHosting_Scopes2() public method

public RubyHosting_Scopes2 ( ) : void
return void
        public void RubyHosting_Scopes2() {
            var s = Engine.CreateScope();
            Context.ObjectClass.SetConstant("S", s);
            s.SetVariable("FooBar", 123);

            TestOutput(@"
p S.get_variable('FooBar')
p S.get_variable('foo_bar')
p S.GetVariable('FooBar')
p S.GetVariable('foo_bar')
", @"
123
123
123
123
");
        }
Tests