public void ShouldAddCash() { var p = new Player(); var startingCash = p.Cash; p.AddCash(10); Assert.IsTrue(p.Cash == (startingCash + 10)); }
public void ShouldAffordAffordableEquipment() { var p = new Player(); var s = new Sword(); if (p.Cash < s.Price) { p.AddCash(s.Price); } Assert.IsTrue(EquipmentHelper.CanAffordEquipment(p, s)); }