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);
        }
示例#2
0
        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);
        }