Example #1
0
 public void testXPAddsToLVUp()
 {
     Player player = new Player();
     player.addXP(500);
     Assert.AreEqual(500, player.getXP());
     Assert.AreEqual(2, player.getLV());
 }
Example #2
0
 public void testXPCanCauseDoubleLVUp()
 {
     Player player = new Player();
     player.addXP(1000);
     Assert.AreEqual(1000, player.getXP());
     Assert.AreEqual(3, player.getLV());
 }
Example #3
0
 public void testXPAddsTogether()
 {
     Player player = new Player();
     player.addXP(100);
     player.addXP(100);
     Assert.AreEqual(200, player.getXP());
     Assert.AreEqual(1, player.getLV());
 }