public void TestGainLevel() { Personnage p = new Personnage("Karjo", "Fail", 0, new Arme("", 0, "", 0), new Armure("", 0, "", 1)); p.GainXp(25); Assert.AreEqual(3, p.Level); }
public void TestGainXp() { Personnage p = new Personnage("Karjo", "Fail", 0, new Arme("", 0, "", 0), new Armure("", 0, "", 1)); p.GainXp(11); Assert.AreEqual(1, p.XpEnCours); }