public void ProcessCommandPopWithNegativesRowAndColInputShouldReturnPopCommand()
        {
            Setup();
            var commandManager = new CommandManager();
            var invalidPop = commandManager.ProcessCommand(invalidCommands[6], this.renderer, this.field, this.fieldMemoryManager, this.balloonsFactory);

            Assert.IsInstanceOfType(invalidPop, typeof(PopBalloonsCommand));
        }
 public void ProcessCommandWithInvalidStringInputShouldThrow()
 {
     Setup();
     var commandManager = new CommandManager();
     var invalid = commandManager.ProcessCommand(invalidCommands[2], this.renderer, this.field, this.fieldMemoryManager, this.balloonsFactory);
 }
 public void ProcessCommandPopInputWithoutRowAndColShouldShouldReturnPopCommand()
 {
     Setup();
     var commandManager = new CommandManager();
     var invalid = commandManager.ProcessCommand(invalidCommands[4], this.renderer, this.field, this.fieldMemoryManager, this.balloonsFactory);
 }
        public void ProcessCommandWithValidTopInputShouldProduceATopCommand()
        {
            Setup();
            var commandManager = new CommandManager();
            var top = commandManager.ProcessCommand(validCommands[4], this.renderer, this.field, this.fieldMemoryManager, this.balloonsFactory);

            Assert.IsInstanceOfType(top, typeof(TopScoresCommand));
        }
        public void ProcessCommandWithValidSaveInputShouldProduceASaveCommand()
        {
            Setup();
            var commandManager = new CommandManager();
            var save = commandManager.ProcessCommand(validCommands[2], this.renderer, this.field, this.fieldMemoryManager, this.balloonsFactory);

            Assert.IsInstanceOfType(save, typeof(SaveCommand));
        }
        public void ProcessCommandWithValidHelpInputShouldProduceAHelpCommand()
        {
            Setup();
            var commandManager = new CommandManager();
            var help = commandManager.ProcessCommand(validCommands[1], this.renderer, this.field, this.fieldMemoryManager, this.balloonsFactory);

            Assert.IsInstanceOfType(help, typeof(HelpCommand));
        }
        public void ProcessCommandWithValidExitInputShouldProduceAExitCommand()
        {
            Setup();
            var commandManager = new CommandManager();
            var exit = commandManager.ProcessCommand(validCommands[0], this.renderer, this.field, this.fieldMemoryManager, this.balloonsFactory);

            Assert.IsInstanceOfType(exit, typeof(ExitCommand));
        }