public void Test1() { ShowdirCommand commandOne = new ShowdirCommand(); ShowdiskCommand commandTwo = new ShowdiskCommand(); DirectoryCommand commandThree = new DirectoryCommand(); StartAppCommand commandFour = new StartAppCommand(); DeleteFileCommand commandFive = new DeleteFileCommand(); UploadFileCommand commandSix = new UploadFileCommand(); ChangeDirCommand commandSeven = new ChangeDirCommand(); DownloadFileCommand commandEight = new DownloadFileCommand(); List <ICommand> container = new List <ICommand>(); container.Add(commandOne); container.Add(commandTwo); container.Add(commandThree); container.Add(commandFour); container.Add(commandFive); container.Add(commandSix); container.Add(commandSeven); container.Add(commandEight); foreach (var value in container) { bool finders = false; foreach (var value2 in _macroCommand._commands) { if (value2.GetType() == value.GetType()) { finders = true; } } Assert.True(finders); } }
public void Setup() { ChangeDirCommand changeDirCommand = new ChangeDirCommand(); _changeDirCommand = changeDirCommand; }