예제 #1
0
        public void TestCreationFromLevel2()
        {
            var xp = 1000;
            var level = 2;

            _experience = Experience.FromLevel(level);

            Assert.AreEqual(xp, _experience.Xp);
            Assert.AreEqual(level, _experience.Level);
        }
예제 #2
0
        public void TestCreationWithXp2()
        {
            var xp = 1500;
            var level = 2;

            _experience = new Experience(xp);

            Assert.AreEqual(xp, _experience.Xp);
            Assert.AreEqual(level, _experience.Level);
        }
예제 #3
0
 public void Initialize()
 {
     _experience = new Experience();
 }