Class ShapeTest.TestGetRotatedShape

java.lang.Object
com.takenoko.shape.ShapeTest.TestGetRotatedShape
Enclosing class:
ShapeTest

@Nested @DisplayName("Method getRotatedShape") class ShapeTest.TestGetRotatedShape extends Object
  • Constructor Details

    • TestGetRotatedShape

      TestGetRotatedShape()
  • Method Details

    • getRotatedShape_shouldReturnNewShapeWithSameSize

      @Test @DisplayName("should return a new shape with the same size") void getRotatedShape_shouldReturnNewShapeWithSameSize()
    • getRotatedShape_shouldReturnNewShapeWithSameOrigin

      @Test @DisplayName("should return a new shape with the same origin") void getRotatedShape_shouldReturnNewShapeWithSameOrigin()
    • getRotatedShape_shouldReturnNewShapeWithTilesRotated60Degrees

      @Test @DisplayName("should return a new shape with the tiles rotated 60 degrees") void getRotatedShape_shouldReturnNewShapeWithTilesRotated60Degrees()
    • getRotatedShape_shouldReturnSameShapeWhenRotationIsMultipleOf360

      @Test @DisplayName("should return the same shape when the rotation is is a multiple of 360 degrees") void getRotatedShape_shouldReturnSameShapeWhenRotationIsMultipleOf360()