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

RubyHosting1F() public method

method_missing on main singleton can be invoked directly.
public RubyHosting1F ( ) : void
return void
        public void RubyHosting1F() {
            var scope = Engine.CreateScope();
            scope.SetVariable("bar", 1);

            // TODO: this should print the value of :bar
            AssertOutput(() =>
                Engine.Execute(@"
puts method_missing(:bar) rescue p $!
", scope), @"
#<NoMethodError: undefined method `bar' for main:Object>
");
        }
Tests