Пример #1
0
        public void IsValidRoverCoordsReturnsTrueIfCoordsValidAndFalseIfNot(string[] input, bool expected)
        {
            _missionControl = new MissionControl(_mockRoverManager, null);
            _mockRoverManager.Stub(x => x.CreateRover(0, 0, 'N'));
            _mockRoverManager.Stub(x => x.CheckCoords(new[] { int.Parse(input[0]), int.Parse(input[1]) })).Return(!expected);

            Assert.AreEqual(expected, _missionControl.IsValidRoverCoords(input));
        }