public void IronRuby_HelloWorld_Ignored_InteractiveOnly() { LanguageSettings ruby = Helper.CreateIronRubySettings(); StringBuilder outputString = new StringBuilder(); TextWriter writer = new StringWriter(outputString); DLREngine engine = new DLREngine(ruby, writer); engine.ExecuteStatement("puts 'Hello World'"); Assert.AreEqual("Hello World\n=> nil\n", outputString.ToString()); }
public void IronPython_HelloWorld() { LanguageSettings python = Helper.CreateIronPythonSettings(); StringBuilder outputString = new StringBuilder(); TextWriter writer = new StringWriter(outputString); DLREngine engine = new DLREngine(python, writer); engine.ExecuteStatement("print 'Hello World'"); Assert.AreEqual("Hello World\r\n", outputString.ToString()); }