public void controllInterfaceTalent(InterfaceTalent talent) { Assert.AreEqual(currentType, talent.GetType()); Assert.AreEqual(currentName, talent.getName()); Assert.AreEqual(currentComplexeName, talent.getName()); Assert.AreEqual(currentProbeCount, talent.getProbeCount()); Assert.AreEqual(currentProbeStringOne, talent.getProbeStringOne()); Assert.AreEqual(currentProbeStringTwo, talent.getProbeStringTwo()); Assert.AreEqual(currentBE, talent.getBe()); Assert.AreEqual(currentDeviate, talent.getDeviateString()); Assert.AreEqual(currentTAW, talent.getTaW()); Assert.AreEqual(currentTAWBonus, talent.getTAWBonus()); }
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()); }
private void checkforDoppelTalents() { List <InterfaceTalent> talentlist = new List <InterfaceTalent>(0); foreach (List <InterfaceTalent> list in TalentDictonary.Values) { talentlist.AddRange(list); } for (int i = 0; i < talentlist.Count; i++) { InterfaceTalent checkTalent = talentlist[i]; for (int j = i + 1; j < talentlist.Count; j++) { InterfaceTalent currentTalent = talentlist[j]; if (String.Compare(checkTalent.getName(), currentTalent.getName()) == 0) { throw new FileLoadException("Doppeltes Talent Entdeckt: " + checkTalent.getName() + " mit dem Typ:" + checkTalent.GetType() + " " + currentTalent.GetType() + " BE:" + checkTalent.getBe()); } } } }