private bool BrickCollisionTestcase2() { /* * Should always fail. Brick is placed way beyond the board. */ BeamBrick beamBrick = new BeamBrick(x: 100, y: 100); return(IsColliding(beamBrick, 0, 0)); }
private bool BrickCollisionTestcase3() { /* * Brick is laid on another, already laid, brick. Should fail. */ BeamBrick beamBrick = new BeamBrick(x: 2); return(IsColliding(beamBrick, 0, 0)); }
private bool BrickCollisionTestcase1() { /* * Should always pass. Brick is placed correctly in the left corner. */ BeamBrick beamBrick = new BeamBrick(); return(!IsColliding(beamBrick, 0, 0)); }