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

Interactive1() public method

public Interactive1 ( ) : void
return void
        public void Interactive1() {
            ScriptScope scope = Runtime.CreateScope();
            AssertOutput(() => Engine.CreateScriptSourceFromString("", SourceCodeKind.InteractiveCode).Execute(scope), "");
            AssertOutput(() => Engine.CreateScriptSourceFromString("x = 1 + 1", SourceCodeKind.InteractiveCode).Execute(scope), "=> 2");
        }
Tests