Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
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));
        }
Ejemplo n.º 3
0
        private bool BrickCollisionTestcase1()
        {
            /*
             * Should always pass. Brick is placed correctly in the left corner.
             */
            BeamBrick beamBrick = new BeamBrick();

            return(!IsColliding(beamBrick, 0, 0));
        }