public void CompileWithSimpleAlertSucceeds() { const string coffeeFile = "temp.coffee"; File.WriteAllText(coffeeFile, "alert 'test' "); string result = null; try { var compiler = new NativeCoffeeScriptCompiler(); result = compiler.Compile(coffeeFile); } finally { if(File.Exists(coffeeFile)) File.Delete(coffeeFile); } Assert.AreEqual("(function() { alert('test');}).call(this);", result); }
public string Process(string filePath, string content) { var compiler = new NativeCoffeeScriptCompiler(); return compiler.Compile(filePath); }