Exemplo n.º 1
0
        public void Discover_WhenThereIsOneRiverOn4x4_ShouldMoveCalledOnce()
        {
            //arrange
            Point          point         = new MarsPoint(4, 4);
            ICardinalPoint cardinalPoint = new EastCardinalPoint();
            RoverStub      rover         = new RoverStub(point, cardinalPoint);

            _map.Rovers = new List <RoverBase>()
            {
                rover
            };

            //act
            _map.Discover();

            //assert
            Assert.AreEqual(1, rover.MoveCalledCount);
        }
 public override void SetUp()
 {
     base.SetUp();
     _eastCardinalPoint = new EastCardinalPoint();
 }