public void GetCommandShouldCreateEmptyCommandWhenStringIsEmpty()
 {
     IDataState data = new Data();
     INotifier notifier = new ConsoleNotifier();
     INumberGenerator numberGenerator = new RandomNumberGenerator();
     var mockedScoreboard = new Mock<IScoreboard>();
     var commandsFactory = new CommandsFactory(data, notifier, numberGenerator, mockedScoreboard.Object);
     var result = (commandsFactory.GetCommand("empty")).ToString();
     Assert.AreEqual(result, "BullsAndCows.Helpers.Commands.EmptyCommand");
 }
 public void GetCommandShouldCreateDisplayMessageCommandWhenStringIsGuessed()
 {
     IDataState data = new Data();
     data.NumberToGuess = "1234";
     INotifier notifier = new ConsoleNotifier();
     INumberGenerator numberGenerator = new RandomNumberGenerator();
     var mockedScoreboard = new Mock<IScoreboard>();
     var commandsFactory = new CommandsFactory(data, notifier, numberGenerator, mockedScoreboard.Object);
     var result = (commandsFactory.GetCommand("1234")).ToString();
     Assert.AreEqual(result, "BullsAndCows.Helpers.Commands.WinGameCommand");
 }
 public void CheatCommandExecuteShouldUpdateHasCheated()
 {
     IDataState data = new Data();
     data.NumberToGuess = "1234";
     data.CheatHelper = "XXXX";
     INotifier notifier = new ConsoleNotifier();
     INumberGenerator numberGenerator = new RandomNumberGenerator();
     CheatCommand cheatCommand = new CheatCommand(data, notifier, numberGenerator);
     cheatCommand.Execute();
     Assert.AreEqual(true, data.HasCheated);
 }