public void When_East_And_Turn_Right_Direction_Should_Be_South()
        {
            var direction    = new East();
            var newdirection = direction.TurnRight();

            Assert.That(newdirection, Is.TypeOf <South>());
        }
Beispiel #2
0
        public void right_from_east_is_south()
        {
            var direction    = new East(_plateau);
            var newdirection = direction.TurnRight();

            Assert.That(newdirection, Is.TypeOf <South>());
        }
        public void Test_East_TurnRight()
        {
            var direction = new East();

            var right = direction.TurnRight();

            Assert.AreEqual("0 -1 S", right.GetDirectionAsString());
        }
Beispiel #4
0
        public void When_Direction_Is_East_And_Turn_Right_Direction_Should_Be_South()
        {
            //Arrange
            var directionPoint = new East(_grid);

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

            //Assert
            Assert.That(actualResult, Is.TypeOf <South>());
        }
Beispiel #5
0
        public void East_TurnRight_returns_South()
        {
            IDirection currentDirection = new East();

            Assert.That(currentDirection.TurnRight(), Is.TypeOf(typeof(South)));
        }