Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void TestResources() {
- Resources resources(25);
- ASSERT_EQUAL(resources.GetBrickCount(), 25);
- resources.TakeBricks(20);
- ASSERT_EQUAL(resources.GetBrickCount(), 5);
- resources.TakeBricks(5);
- PASSERT_EQUAL(resources.GetBrickCount(), 0);
- (resources.TakeBricks(1), out_of_range) ---- !!!!!!
- ASSERT_EQUAL(resources.GetBrickCount(), 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement