예제 #1
0
파일: PlateauTests.cs 프로젝트: odw1/Katas
        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
파일: PlateauTests.cs 프로젝트: odw1/Katas
        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);
        }