예제 #1
0
        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);
        }
예제 #2
0
        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);
        }