Ejemplo n.º 1
0
        public void CharacterModel_AddExperience_Default_Should_Pass()
        {
            // ArDefense
            var data = new CharacterModel();

            // Act
            var result = data.AddExperience(0);

            // Reset

            // Assert
            Assert.AreEqual(false, result);
        }
Ejemplo n.º 2
0
        public void CharacterModel_AddExperienceLevelTwenty_Should_Pass()
        {
            // Arrange
            var data = new CharacterModel();

            data.Level = 20;

            // Act
            var result = data.AddExperience(50000);

            // Reset

            // Assert
            Assert.AreEqual(true, result);
        }
Ejemplo n.º 3
0
        public void CharacterModel_AddExperienceLevelOne_Should_Pass()
        {
            // Arrange
            var data = new CharacterModel();

            data.Level = 1;

            // Act
            var result = data.AddExperience(300);

            // Reset

            // Assert
            Assert.AreEqual(true, result);
            Assert.AreEqual(2, data.Level);
        }