public void PlayerCanHaveCashAdded() { Player p = new Player(); int startingCash = p.Cash; p.AddCash(10); Assert.IsTrue(p.Cash == (startingCash + 10)); }
public void PlayerCanAffordAffordableEquipment() { Player p = new Player(); Sword s = new Sword(); if (p.Cash < s.Price) { p.AddCash(s.Price); } Assert.IsTrue(p.CanAffordEquipment(s)); }