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)); }
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)); }