コード例 #1
0
        public void left_from_east_is_north()
        {
            var direction    = new East(_plateau);
            var newdirection = direction.TurnLeft();

            Assert.That(newdirection, Is.TypeOf <North>());
        }
コード例 #2
0
        public void Test_East_TurnLeft()
        {
            var direction = new East();

            var left = direction.TurnLeft();

            Assert.AreEqual("0 1 N", left.GetDirectionAsString());
        }
コード例 #3
0
        public void When_East_And_Turn_Left_Direction_Should_Be_North()
        {
            var direction = new East(_landscape);

            var newDirection = direction.TurnLeft();

            Assert.That(newDirection, Is.TypeOf <North>());
        }
コード例 #4
0
        public void When_Direction_Is_East_And_Turn_Left_Direction_Should_Be_North()
        {
            //Arrange
            var directionPoint = new East(_grid);

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

            //Assert
            Assert.That(actualResult, Is.TypeOf <North>());
        }
コード例 #5
0
        public void East_TurnLeft_returns_North()
        {
            IDirection currentDirection = new East();

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