Examples of checkBetOutcome()


Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       diceVal[0] = 6;
       diceVal[1] = 4;
       point = 0;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 0);
       Assert.assertEquals(passLineBet.getBetAmount(), 100);


       //Point is set to 4
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       //Player should win
       diceVal[0] = 2;
       diceVal[1] = 2;
       point = 4;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 200);
       Assert.assertEquals(passLineBet.getBetAmount(), 0);

       //Point is set to 4
       //Dice != point and 7
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       //No payout, bet amount should remain the same
       diceVal[0] = 2;
       diceVal[1] = 4;
       point = 4;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 0);
       Assert.assertEquals(passLineBet.getBetAmount(), 100);

       //Point is set to 4
       //Dice = 7
View Full Code Here

Examples of net.rallyedu.Crapout.PassLine.checkBetOutcome()

       //No payout, bet amount should be 0
       diceVal[0] = 3;
       diceVal[1] = 4;
       point = 4;
       passLineBet.setBetAmount(betAmt);
       passLineBet.checkBetOutcome(diceVal,true, point);
       Assert.assertEquals(passLineBet.getPayOut(), 0);
       Assert.assertEquals(passLineBet.getBetAmount(), 0);
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.