示例#1
0
        public void Run_ShouldNotThrowException__IfRobotNotPlaced()
        {
            _robot.Position = null;
            var action = new ReportAction(_robot, _mapProvider, _reporterMock.Object);

            action.Run();
        }
示例#2
0
        public void Run_ShouldShowReport()
        {
            var action = new ReportAction(_robot, _mapProvider, _reporterMock.Object);

            action.Run();
            _reporterMock.Verify(reporter => reporter.Info("Position: 3 2, facing: SOUTH."), Times.Once);
        }