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

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

            var right = direction.TurnRight();

            Assert.AreEqual("1 0 E", right.GetDirectionAsString());
        }
Exemplo n.º 3
0
        public void When_North_And_Turn_Right_Direction_Should_Be_East()
        {
            var direction = new North(_landscape);

            var newDirection = direction.TurnRight();

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

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

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

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