Esempio n. 1
0
        public void CharacterMonsterBaseModel_RemoveItemFromLocatio_default_Should_Pass()
        {
            // Arrange

            var data = new CharacterMonsterBaseModel <CharacterModel>();

            // Act
            data.RemoveItemFromLocation(ItemLocationEnum.Unknown);
            // Reset

            // Assert
            Assert.AreEqual(0, (int)ItemLocationEnum.Unknown);
        }
Esempio n. 2
0
        public void CharacterMonsterBaseModel_RemoveItemFromLocatio_PrimaryHand_Should_Pass()
        {
            // Arrange

            var data = new CharacterMonsterBaseModel <CharacterModel>();

            // Act
            data.PrimaryHand = "Flaming Sword";
            data.RemoveItemFromLocation(ItemLocationEnum.PrimaryHand);
            var newPrimaryHand = data.PrimaryHand;

            // Reset
            data.RightFinger = null;
            // Assert
            Assert.AreEqual(null, newPrimaryHand);
        }
Esempio n. 3
0
        public void CharacterMonsterBaseModel_RemoveItemFromLocatio_RightFinger_Should_Pass()
        {
            // Arrange

            var data = new CharacterMonsterBaseModel <CharacterModel>();

            // Act
            data.RightFinger = "Ring";
            data.RemoveItemFromLocation(ItemLocationEnum.RightFinger);
            var newRightFinger = data.RightFinger;

            // Reset
            data.RightFinger = null;
            // Assert
            Assert.AreEqual(null, newRightFinger);
        }
Esempio n. 4
0
        public void CharacterMonsterBaseModel_RemoveItemFromLocation_Feet_Should_Pass()
        {
            // Arrange

            var data = new CharacterMonsterBaseModel <CharacterModel>();

            // Act
            data.Feet = "Absorption Shoes";
            data.RemoveItemFromLocation(ItemLocationEnum.Feet);
            var newFeet = data.Feet;

            // Reset
            data.Feet = null;
            // Assert
            Assert.AreEqual(null, newFeet);
        }
Esempio n. 5
0
        public void CharacterMonsterBaseModel_RemoveItemFromLocation_Head_Should_Pass()
        {
            // Arrange

            var data = new CharacterMonsterBaseModel <CharacterModel>();

            // Act
            data.Head = "Helmet";
            data.RemoveItemFromLocation(ItemLocationEnum.Head);
            var newHead = data.Head;

            // Reset
            data.Head = null;
            // Assert
            Assert.AreEqual(null, newHead);
        }
Esempio n. 6
0
        public void CharacterMonsterBaseModel_RemoveItemFromLocatio_OffHand_Should_Pass()
        {
            // Arrange

            var data = new CharacterMonsterBaseModel <CharacterModel>();

            // Act
            data.OffHand = "Thunder bolt";
            data.RemoveItemFromLocation(ItemLocationEnum.OffHand);
            var newOffHand = data.OffHand;

            // Reset
            data.OffHand = null;
            // Assert
            Assert.AreEqual(null, newOffHand);
        }
Esempio n. 7
0
        public void CharacterMonsterBaseModel_RemoveItemFromLocatio_NeckLass_Should_Pass()
        {
            // Arrange

            var data = new CharacterMonsterBaseModel <CharacterModel>();

            // Act
            data.Necklace = "Posinous pearls";
            data.RemoveItemFromLocation(ItemLocationEnum.Necklass);
            var newNecklace = data.Necklace;

            // Reset
            data.Necklace = null;
            // Assert
            Assert.AreEqual(null, newNecklace);
        }