public void Execute(List <string> argument) { foreach (var command in commands.GetCommands()) { display.Show(command); } }
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); } }