Esempio n. 1
0
 public void PlayerCanHaveCashAdded()
 {
     Player p = new Player();
     int startingCash = p.Cash;
     p.AddCash(10);
     Assert.IsTrue(p.Cash == (startingCash + 10));
 }
Esempio n. 2
0
 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));
 }