예제 #1
0
 public void Execute(List <string> argument)
 {
     foreach (var command in commands.GetCommands())
     {
         display.Show(command);
     }
 }
예제 #2
0
        public void execute_method_test()
        {
            var commands = new List <ICommand> {
                command
            };

            container.GetCommands().Returns(commands);
            help.Execute(null);
            foreach (var c in commands)
            {
                display.Received().Show(c);
            }
        }