Buy Railroad and Pay Rent to Railroad Acceptance Tests
The land value of all railroads are the same. The price and base rend of the railroads are set by the game board. There can be no more than 4 railroads on a game board.
In this test case, the price of each railroad is $200, and the base rent is $25.
railroad1*
fit.ActionFixture | ||
start | edu.ncsu.realestate.RailRoad | |
press | initialize game board | |
enter | number of players | 2 |
enter | player 1 name | 1 |
enter | player 2 name | 2 |
enter | player dice roll | 1 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 2 |
press | end turn | |
enter | player dice roll | 3 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 1 |
press | end turn | |
enter | player dice roll | 4 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 3 |
press | end turn | |
enter | player dice roll | 3 |
press | purchase property | |
press | end turn | |
check | player A money | 700 |
check | player B money | 1500 |
check | player A railroads | 4 |
Pay Rent to Railroad User Story
When player A lands on player B's railroad, A pays rent to B based on the number of railroads B owns. If the base rent of a railroad is R, and the number of the railroads B owns is N, the amount of rent A needs to pay B is R * 2 ^ N-1.
railroad2*
fit.ActionFixture | ||
start | edu.ncsu.realestate.RailRoad | |
press | initialize game board | |
enter | number of players | 2 |
enter | player 1 name | 1 |
enter | player 2 name | 2 |
enter | player dice roll | 1 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 2 |
press | end turn | |
enter | player dice roll | 3 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 1 |
press | end turn | |
enter | player dice roll | 4 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 3 |
press | end turn | |
enter | player dice roll | 3 |
press | purchase property | |
press | end turn | |
check | player A money | 700 |
check | player B money | 1500 |
check | player A railroads | 4 |
enter | player dice roll | 2 |
press | end turn | |
check | player A money | 900 |
check | player B money | 1300 |
railroad2.1
fit.ActionFixture | ||
start | edu.ncsu.realestate.RailRoad | |
press | initialize game board | |
enter | number of players | 2 |
enter | player 1 name | 1 |
enter | player 2 name | 2 |
enter | player dice roll | 1 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 1 |
press | end turn | |
check | player A money | 1325 |
check | player B money | 1475 |
check | player A owns Railroad A | true |
railroad2.2
fit.ActionFixture | ||
start | edu.ncsu.realestate.RailRoad | |
press | initialize game board | |
enter | number of players | 2 |
enter | player 1 name | 1 |
enter | player 2 name | 2 |
enter | player dice roll | 1 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 2 |
press | end turn | |
enter | player dice roll | 3 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 2 |
press | end turn | |
check | player A money | 1150 |
check | player B money | 1450 |
check | player A owns Railroad A | true |
check | player A owns Railroad B | true |
railroad2.3
fit.ActionFixture | ||
start | edu.ncsu.realestate.RailRoad | |
press | initialize game board | |
enter | number of players | 2 |
enter | player 1 name | 1 |
enter | player 2 name | 2 |
enter | player dice roll | 1 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 2 |
press | end turn | |
enter | player dice roll | 3 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 1 |
press | end turn | |
enter | player dice roll | 4 |
press | purchase property | |
press | end turn | |
enter | player dice roll | 5 |
press | end turn | |
check | player A money | 1000 |
check | player B money | 1400 |
check | player A owns Railroad A | true |
check | player A owns Railroad B | true |
check | player A owns Railroad C | true |
Created: 6/18/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