Esempio n. 1
0
        public void TestGCharacterHasDerivedStats()
        {
            GenericCharacter GC       = GenericCharacter.GCFactory();
            DerivedStat      testStat = GC.GetDerivedStat("Health");

            Assert.IsInstanceOfType(testStat, typeof(DerivedStat));
        }
Esempio n. 2
0
        public void TestACharacterAgilityIsThree()
        {
            GenericCharacter GC       = GenericCharacter.GCFactory();
            BaseStat         testStat = GC.GetBaseStat("Agility");

            Assert.AreEqual(3, testStat.Value);
        }
Esempio n. 3
0
        public void TestGCharacterHasAgility()
        {
            GenericCharacter GC       = GenericCharacter.GCFactory();
            BaseStat         testStat = GC.GetBaseStat("Agility");

            Assert.IsInstanceOfType(testStat, typeof(BaseStat));
        }
Esempio n. 4
0
        public void TestGCharacterHasStats()
        {
            GenericCharacter GC      = GenericCharacter.GCFactory();
            Stats            myStats = GC.myStats;

            Assert.IsInstanceOfType(myStats, typeof(Stats));
        }
Esempio n. 5
0
        public void TestACharacterAgilityIsFourAfterIncrement()
        {
            GenericCharacter GC = GenericCharacter.GCFactory();

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

            Assert.AreEqual(4, testStat.Value);
        }
Esempio n. 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));
        }
Esempio n. 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);
        }
Esempio n. 8
0
        public void TestCreateCharacter()
        {
            GenericCharacter GC = GenericCharacter.GCFactory();

            Assert.IsInstanceOfType(GC, typeof(ACharacter));
        }
Esempio n. 9
0
        public void TestCreateCharacterName()
        {
            GenericCharacter GC = GenericCharacter.GCFactory();

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