예제 #1
0
        internal static void SetDefault(Builder builder)
        {
            builder.Commands.Clear();
            builder.Commands.Add(CommandsBuilder.BuildClear());
            builder.Commands.Add(CommandsBuilder.BuildCurrentDirectory());
            builder.Commands.Add(CommandsBuilder.BuildTexo());
            builder.Commands.Add(CommandsBuilder.BuildHelp());

            builder.DefaultCommand = string.Empty;
        }
예제 #2
0
        public void InputTree_BuildTexo_TexoTree()
        {
            InputTreeBuilder builder = new InputTreeBuilder(new EmptyLogService());
            InputTree        tree    = builder.Build(new[] { CommandsBuilder.BuildTexo() }, null);

            Assert.NotNull(tree);
            Assert.NotNull(tree.Root);
            Assert.NotNull(tree.Root.Queries["texo"]);
            Assert.Equal(6, tree.Root.Queries["texo"].Queries.Count);
        }