Jail User Stories and Acceptance Tests


Go To Jail User Story

When a user lands on the "Go to Jail" cell, the player goes directly to jail, does not pass go, and does not collect $200. However, a player may land on the Jail cell and be “Just Visiting” (i.e. not in jail). A player may only be in jail if they land on the “Go to Jail” cell or are told to go to jail by a card.

goToJail1*

fit.ActionFixture
start edu.ncsu.realestate.Jail  
press initialize game board  
enter number of players 2
enter player 1 name 1
enter player 2 name 2
enter player dice roll 6
press end turn  
check player position Jail
check player in jail true

goToJail2

fit.ActionFixture
start edu.ncsu.realestate.Jail  
press initialize game board  
enter number of players 2
enter player 1 name 1
enter player 2 name 2
enter player dice roll 2
press end turn  
check player position Jail
check player in jail false

Get Out Of Jail User Story

When a player is in Jail, he must pay 50 dollars to get out of jail in the next turn. If he or she does not have enough money, he or she is out of the game, and the cells he or she owns become available without any houses.

getOutOfJail1* and getOutOfJail2

fit.ActionFixture
start edu.ncsu.realestate.Jail  
press initialize game board  
enter number of players 2
enter player 1 name 1
enter player 2 name 2
enter player dice roll 6
press end turn  
check player position Jail
check player in jail true
enter player dice roll 2
press end turn  
press get out of jail  
check player money 1450
enter player dice roll 2
press purchase property  
check player money 0
press end turn  
enter player dice roll 3
press end turn  
enter player dice roll 2
press end turn  
press get out of jail  
check player bankruptcy true
check player owns blue 3 false

Created: 6/14/2004
Modified: 8/22/2005

Return to FIT Summary
Return to RealEstate Example

Copyright © 2004-2006 North Carolina State University, Dr. Laurie Williams, Dright Ho, and Sarah Smith