Пример #1
0
        public void TestGCharacterHasDerivedStats()
        {
            GenericCharacter GC       = GenericCharacter.GCFactory();
            DerivedStat      testStat = GC.GetDerivedStat("Health");

            Assert.IsInstanceOfType(testStat, typeof(DerivedStat));
        }
Пример #2
0
        public void TestACharacterAgilityIsThree()
        {
            GenericCharacter GC       = GenericCharacter.GCFactory();
            BaseStat         testStat = GC.GetBaseStat("Agility");

            Assert.AreEqual(3, testStat.Value);
        }
Пример #3
0
        public void TestGCharacterHasAgility()
        {
            GenericCharacter GC       = GenericCharacter.GCFactory();
            BaseStat         testStat = GC.GetBaseStat("Agility");

            Assert.IsInstanceOfType(testStat, typeof(BaseStat));
        }
Пример #4
0
        public void TestGCharacterHasStats()
        {
            GenericCharacter GC      = GenericCharacter.GCFactory();
            Stats            myStats = GC.myStats;

            Assert.IsInstanceOfType(myStats, typeof(Stats));
        }
Пример #5
0
        public void TestACharacterAgilityIsFourAfterIncrement()
        {
            GenericCharacter GC = GenericCharacter.GCFactory();

            GC.myStats.Agility.Value++;
            BaseStat testStat = GC.GetBaseStat("Agility");

            Assert.AreEqual(4, testStat.Value);
        }
Пример #6
0
        public void TestAddBaseEquippableToCharacter()
        {
            GenericCharacter GC = GenericCharacter.GCFactory();

            BaseEquipable BE = new BaseEquipable(1, "BaseSword", 10);

            BE.EquipEffects.Add("Strength", 1);
            BE.TargetBodyParts.Add(new Arm());

            Assert.IsTrue(GC.AddEquipment(BE));
        }
Пример #7
0
        public void TestAddBaseEquippableToCharacterAndTestStrength()
        {
            GenericCharacter GC = GenericCharacter.GCFactory();

            BaseEquipable BE = new BaseEquipable(1, "BaseSword", 10);

            BE.EquipEffects.Add("Strength", 1);
            BE.TargetBodyParts.Add(new Arm());

            GC.AddEquipment(BE);

            Assert.AreEqual(4, GC.myStats.Strength.Value);
        }
Пример #8
0
        public void TestCreateCharacter()
        {
            GenericCharacter GC = GenericCharacter.GCFactory();

            Assert.IsInstanceOfType(GC, typeof(ACharacter));
        }
Пример #9
0
        public void TestCreateCharacterName()
        {
            GenericCharacter GC = GenericCharacter.GCFactory();

            Assert.AreEqual("Vanessa", GC.Name);
        }