Description
Create comprehensive unit tests for item system and player inventory.
Depends on: Item subclasses and Player issues
Test Coverage
Item Subclass Tests
- Weapon.Use(): Verify damage bonus applied correctly
- Armor.Use(): Verify defense bonus applied correctly
- Potion.Use(): Verify healing applied correctly
- Potion healing capped at MaxHealth
Player Inventory Tests
- AddItem() adds item to inventory
- RemoveItem() removes item from inventory
- UseItem() applies item effect and removes from inventory
- Inventory state changes verified
LootResolver Tests
- Test with injected seed for deterministic drops
- Verify drop probability calculations
- Verify Dragon always drops at least one item
- Verify Gold equals GoldReward
Requirements
- Use xUnit testing framework
- Use seeded Random for loot tests
- Test edge cases (full health, empty inventory, etc.)
- All tests must pass in CI pipeline
Acceptance Criteria
Description
Create comprehensive unit tests for item system and player inventory.
Depends on: Item subclasses and Player issues
Test Coverage
Item Subclass Tests
Player Inventory Tests
LootResolver Tests
Requirements
Acceptance Criteria