public void TalentTest_Requirement() { InterfaceTalent talent = getTalentWithRequirement(); List <TalentRequirement> requirementList = getTalentRequirementList(); charakter.addTalent(talent); Assert.AreEqual(requirementList.Count, talent.getRequirementList().Count); Assert.AreEqual(getRequirementString(requirementList), talent.getRequirementString()); if (requirementList.Count > 0) { Assert.AreEqual(requirementList, talent.getRequirementList()); } }
public void TalentTest_JustGeneratetTest_WithoutDiverateRequirement() { charakter = null; InterfaceTalent talent = getTalentWithoutDeviateRequirement(); List <TalentRequirement> trl = talent.getRequirementList(); List <TalentDeviate> tdl = talent.getDeviateList(); Assert.AreEqual(getTalentName(), talent.getName()); Assert.AreEqual(getProbeList().Count(), talent.getProbeCount()); Assert.AreEqual(getProbeStringOne(), talent.getProbeStringOne()); Assert.AreEqual(getProbeStringTwo(), talent.getProbeStringTwo()); Assert.AreEqual("-", talent.getTaW()); Assert.AreEqual("0", talent.getTAWBonus()); Assert.AreEqual(getBEString(), talent.getBe()); Assert.AreEqual(0, talent.getDeviateList().Count); Assert.AreEqual(0, talent.getRequirementList().Count); Assert.AreEqual("-", talent.getRequirementString()); Assert.AreEqual("-", talent.getDeviateString()); Assert.AreEqual("-", talent.getTaW()); Assert.AreEqual("0", talent.getTAWBonus()); }