示例#1
0
        public void when_validation_a_position_and_the_Y_coordinate_is_to_low()
        {
            var plateau = new Plateau(5, 5);
            var position = new Position(2, -2, Direction.North);

            var isValidPosition = plateau.IsPositionOnPlateau(position);

            "It should NOT successfully validate the position".AssertThat(isValidPosition, Is.False);
        }
示例#2
0
        public void when_validation_a_position()
        {
            var plateau = new Plateau(5, 5);
            var position = new Position(2, 2, Direction.North);

            var isValidPosition = plateau.IsPositionOnPlateau(position);

            "It should successfully validate the position".AssertThat(isValidPosition, Is.True);
        }