static void Main(string[] args) { StateBuilderCli app = new StateBuilderCli(); ReturnCode errorCode = app.run(args); ts.Close(); Environment.Exit((int)errorCode); }
public void Ok() { args = new string[] { inputFile }; string generatedFile = Path.Combine(Path.GetDirectoryName(inputFile), "HelloWorldFsm.cs"); File.Delete(generatedFile); StateBuilderCli.ReturnCode errorCode = app.run(args); Assert.AreEqual(errorCode, StateBuilderCli.ReturnCode.Ok); Assert.IsTrue(File.Exists(generatedFile)); }