示例#1
0
        static void Main(string[] args)
        {
            StateBuilderCli app       = new StateBuilderCli();
            ReturnCode      errorCode = app.run(args);

            ts.Close();
            Environment.Exit((int)errorCode);
        }
示例#2
0
        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));
        }