public void ReadAmmounOfCommands_integer_input_should_return_integer() { CommandReader SUT = new CommandReader(_mockView.Object); _mockView.Setup(x => x.ReadLine()).Returns("44"); int result = SUT.ReadAmountOfCommands(); Assert.AreEqual(44, result); }
public void TestFirstLineOK() { CommandReader test = new CommandReader(_mockView.Object, _mockRobotCleanerServices.Object); _mockView.Setup(x => x.ReadLine()).Returns("2"); int result = test.ReadAmountOfCommands(); Assert.AreEqual(2, result); }