Пример #1
0
        public void setATWithoutTaW()
        {
            talent = getTalentFightingWithDeviateRequirement();
            charakter.addTalent(talent);
            talent.setAT(10);

            Assert.AreEqual(0, talent.getAT());
        }
Пример #2
0
 public void controllTalentFighting(TalentFighting talent)
 {
     Assert.AreEqual(currentAT, talent.getAT());
     Assert.AreEqual(currentPA, talent.getPA());
     Assert.AreEqual(currentProbeValueAT, talent.getProbeValueAT());
     Assert.AreEqual(currentProbeValuePA, talent.getProbeValuePA());
     Assert.AreEqual(currentProbeStringThree, talent.getProbeStringThree());
 }
Пример #3
0
        public void setATWithATGreateTAW()
        {
            Random random = new Random();

            talent = getTalentFightingWithDeviateRequirement();
            charakter.addTalent(talent);

            int taw = random.Next(maxTaW);
            int at  = random.Next(maxAT) + taw;

            talent.setTaw(taw.ToString());
            talent.setAT(at);

            Assert.AreEqual(taw, talent.getAT());
        }
Пример #4
0
        public void setTAandPA_PAfirst()
        {
            Random random = new Random();

            talent = getTalentFightingWithDeviateRequirement();
            charakter.addTalent(talent);
            parade = true;

            int expected = 0;
            int taw      = random.Next(maxTaW);
            int at       = random.Next(maxAT);
            int pa       = random.Next(maxPA);

            talent.setTaw(taw.ToString());
            talent.setPA(pa);
            talent.setAT(at);

            expected = pa;
            if (taw < pa)
            {
                expected = taw;
            }
            Assert.AreEqual(expected.ToString(), talent.getPA());

            expected = at;
            if (taw - pa < at)
            {
                expected = taw - pa;
                if (expected < 0)
                {
                    expected = 0;
                }
            }

            Assert.AreEqual(expected, talent.getAT());
        }