Example #1
0
        public void AfterTurnLeftIsNotOrientedToNorth()
        {
            var ant = AntFactory.CreateAntOnDefaultPosition();

            ant.TurnLeft();
            Assert.False(ant.IsOrientedToNorth());
        }
Example #2
0
        public void AfterTurnLeftIsOrientedToWest()
        {
            var ant = AntFactory.CreateAntOnDefaultPosition();

            ant.TurnLeft();
            Assert.True(ant.IsOrientedToWest());
        }
Example #3
0
        public void DefaultPositionOfAntIsNorth()
        {
            var ant = AntFactory.CreateAntOnDefaultPosition();

            Assert.True(ant.IsOrientedToNorth());
        }
Example #4
0
        public void NewAntIsOnDefaultPosition()
        {
            var ant = AntFactory.CreateAntOnDefaultPosition();

            Assert.Equal(_defaultPosition, ant.GetPosition());
        }