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

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

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

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

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