Browse Source

Unittest Pong

main
fdai4616 2 years ago
parent
commit
03b7eaae44
  1. 11
      src/test_/java/CollisionCheckerTest.java

11
src/test_/java/CollisionCheckerTest.java

@ -85,4 +85,15 @@ public class CollisionCheckerTest {
//assert
assertTrue(result);
}
@Test
void WhenBallXCoordinateIsMoreThanZero_didTouchLeftEdge_ReturnsTrue() {
// arrange
Integer ballXCoordinate = 10;
//act
Boolean result = collisionChecker.didTouchLeftEdge(ballXCoordinate);
//assert
assertFalse(result);
}
}
Loading…
Cancel
Save