Exemple #1
0
 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));
 }
Exemple #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));
 }