private Cli.CommandLine setUpCommandLine()
        {
            // We use a subset of commands to make the testing simpler, in particular when it comes to testing
            // the help message.
            var cmdLoad = new Cli.Command(
                "load",
                "loads the AASX package into RAM.",
                new[]
            {
                new Cli.Arg(
                    "package-file",
                    "Path to the AASX package."),
            },
                (cmdArgs) =>
            {
                var pth = cmdArgs[0];
                return(new Cli.Parsing(new Instruction.Load(pth)));
            }
                );

            var cmdLine = Cli.DeclareCommandLine(
                "test-program",
                "Tests something.",
                new List <Cli.Command> {
                cmdLoad
            }
                );

            return(cmdLine);
        }
        public void TestWithNoArguments()
        {
            var cmdLine = Cli.DeclareCommandLine(
                "test-program",
                "Tests something.",
                new List <Cli.Command>()
                );

            var parsing = Cli.ParseInstructions(cmdLine, new string[] { });

            Assert.IsNull(parsing.Errors);
            Assert.IsEmpty(parsing.Instructions);
        }