public void BasePlayerModel_ClearBuff_Default_Should_Pass()
        {
            var data = new BasePlayerModel <CharacterModel>();

            // clear the buff
            data.ClearBuffs();

            Assert.AreEqual(data.BuffHealthValue, 0);
            Assert.AreEqual(data.BuffAttackValue, 0);
            Assert.AreEqual(data.BuffDefenseValue, 0);
            Assert.AreEqual(data.BuffSpeedValue, 0);
        }
Ejemplo n.º 2
0
        public void BasePlayerModel_ClearBuffs_Default_Should_Pass()
        {
            // Arrange
            var data = new BasePlayerModel <CharacterModel>();

            data.BuffAttackValue  = 1;
            data.BuffDefenseValue = 1;
            data.BuffHealthValue  = 1;
            data.BuffSpeedValue   = 1;

            // Act
            data.ClearBuffs();

            // Reset

            // Assert
            Assert.IsTrue(data.BuffHealthValue == 0 && data.BuffAttackValue == 0 && data.BuffDefenseValue == 0 && data.BuffSpeedValue == 0);
        }