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

HostingDefaultOptions1() public method

public HostingDefaultOptions1 ( ) : void
return void
        public void HostingDefaultOptions1() {
            // this reports warnings that the default ErrorSink should ignore:
            Engine.Execute(@"
x = lambda { }
1.times &x

a = 'ba'.gsub /b/, '1'
");

            // errors and fatal errors should trigger an exception:
            AssertExceptionThrown<SyntaxErrorException>(() => Engine.Execute("}"));
        }
Tests