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

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

            var right = direction.TurnRight();

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

            var newDirection = direction.TurnRight();

            Assert.That(newDirection, Is.TypeOf <North>());
        }
Exemplo n.º 4
0
        public void West_TurnRight_returns_North()
        {
            IDirection currentDirection = new West();

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