public void PlayerCanHaveCashSet() { Player p = new Player(); int startingCash = p.Cash; p.SetCash(startingCash + 100); Assert.IsTrue(p.Cash == (startingCash + 100)); }
public void PlayerCannotAffordUnaffordableEquipment() { Player p = new Player(); Sword s = new Sword(); if (p.Cash >= s.Price) { p.SetCash(s.Price-100); } Assert.IsFalse(p.CanAffordEquipment(s)); }