public void CompileToTypeScriptAndRun() { var c = new TypeScriptCompilerUtility().CompileToJavaScript(GetTestScriptFile("Test01.ts"), JavaScriptEngine.NodeJS); Assert.IsTrue(c.Succeeded); var r = new JavaScriptRunner().Run(c.OutputFileName, JavaScriptEngine.NodeJS); Assert.IsTrue(r.Succeeded); Assert.AreEqual(Test01_Ouptut.Replace("\r", ""), r.Output); }
public void CompileToTypeScriptWithInvalidSyntax() { var c = new TypeScriptCompilerUtility().CompileToJavaScript(GetTestScriptFile("Test02.ts"), JavaScriptEngine.NodeJS); Assert.IsFalse(c.Succeeded); }
public void CompileToTypeScript() { var c = new TypeScriptCompilerUtility().CompileToJavaScript(GetTestScriptFile("Test01.ts"), JavaScriptEngine.NodeJS); Assert.IsTrue(c.Succeeded); }