public void TestInvokeNoArgs() { var repo = new SnippetRepo(TestHelper.TestSnippetDir); var runner = new LpRunner(); var testFile = repo.GetFileFromName("test"); var output = runner.Run(testFile).ToArray(); Assert.AreEqual(1, output.Length); Assert.AreEqual("Hello, world!", output[0]); }
public IEnumerable <string> RunArgs(string snippetName, [FromBody] string arguments) { var file = _repo.GetFileFromName(snippetName); return(_runner.Run(file, arguments)); }