Exemplo n.º 1
0
        public void left_from_north_is_west()
        {
            var direction    = new North(_plateau);
            var newdirection = direction.TurnLeft();

            Assert.That(newdirection, Is.TypeOf <West>());
        }
Exemplo n.º 2
0
        public void Test_North_TurnLeft()
        {
            var direction = new North();

            var left = direction.TurnLeft();

            Assert.AreEqual("-1 0 W", left.GetDirectionAsString());
        }
Exemplo n.º 3
0
        public void When_North_And_Turn_Left_Direction_Should_Be_West()
        {
            var direction = new North(_landscape);

            var newDirection = direction.TurnLeft();

            Assert.That(newDirection, Is.TypeOf <West>());
        }
Exemplo n.º 4
0
        public void When_Command_Is_Turn_Left_Expected_Direction_Is_West()
        {
            //Arrange
            var directionPoint = new North(_grid);

            //Act
            var actualResult = directionPoint.TurnLeft();

            //Assert
            Assert.That(actualResult, Is.TypeOf(typeof(West)));
        }
Exemplo n.º 5
0
        public void North_TurnLeft_returns_West()
        {
            IDirection currentDirection = new North();

            Assert.That(currentDirection.TurnLeft(), Is.TypeOf(typeof(West)));
        }