Test Plan for NPC Room and Gambling Room - UQcsse3200/2024-studio-1 GitHub Wiki
Disclaimer
Without the ability to test any GameArea usages it is difficult to unit test any of the current Shop Room or NPC Room
Therefore the video testing is the method available
Objectives - Shop Room
Objective: Verify Room loads with correct objects spawned randomly
Setup: Clear obstacle to NPC room location
Execution: Walk into shop room
Expected Outcomes: Room spawns the items in a straight line and the room is exittable on entering and no enemies are spawned
Objective: Verify when funds are below $10 that the $10 items cannot be bought and this is displayed
Setup: Enter the room with less than $10
Execution: Walk into Shop room and press "p" to purchase item
Expected Outcomes: Insufficient funds displayed
Objective: ShopRoomDisplay
displayed for 3 seconds upon entry
Setup: Clear prior room
Execution: Walk into shop room
Expected Outcomes: Display is presented at the top of the screen for 3 seconds and is cleared after
Objective: Purchases items enter inventory if item or buffs have instant effect Setup: Clear a room with the required amount of money to purchase a buff and item (>= $20) Execution: Enter shop room and purchase a buff and item Expected Outcomes: buff is applied instantly and item is applied into player inventory and money is cleared of the item cost
Objectives - Gambling Room
Objective: Verify Room loads with an item Setup: Clear obstacle to NPC room location Execution: Walk into shop room Expected Outcomes: Room spawns the item in the middle of the room