Exemplo n.º 1
0
        public void When_South_And_Turn_Left_Direction_Should_Be_East()
        {
            var direction    = new South();
            var newdirection = direction.TurnLeft();

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

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

            var left = direction.TurnLeft();

            Assert.AreEqual("1 0 E", left.GetDirectionAsString());
        }
Exemplo n.º 4
0
        public void When_Direction_Is_South_And_Turn_Left_Direction_Should_Be_East()
        {
            //Arrange
            var directionPoint = new South(_grid);

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

            //Assert
            Assert.That(actualResult, Is.TypeOf <East>());
        }
Exemplo n.º 5
0
        public void South_TurnLeft_returns_East()
        {
            IDirection currentDirection = new South();

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