Ejemplo n.º 1
0
        public void SearchDeeperTest4()
        {
            var node     = new CommandNode();
            var command1 = new Command {
                Name = "show config"
            };
            var command2 = new Command {
                Name = "show"
            };
            var command3 = new Command {
                Name = "show test"
            };

            node.Add(command1);
            node.Add(command2);
            node.Add(command3);

            string line = "show";

            Assert.IsTrue(node.SearchDeeper(ref line).FullName == "show");
            Assert.IsTrue(String.IsNullOrEmpty(line));
        }