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()); }
public void TalentTest_Deviate() { InterfaceTalent talent = getTalentWithDeviate(); List <TalentDeviate> deviateList = getTalentDeviateList(); charakter.addTalent(talent); Assert.AreEqual(getDeviateString(deviateList), talent.getDeviateString()); Assert.AreEqual(deviateList.Count, talent.getDeviateList().Count); if (deviateList.Count > 0) { Assert.AreEqual(deviateList, talent.getDeviateList()); } talent.setTaw("0"); for (int i = 0; i < deviateList.Count; i++) { InterfaceTalent Dtalent = charakter.getTalent(deviateList[i].getName()); Assert.AreEqual("0", Dtalent.getTAWBonus()); } for (int i = 0; i < deviateList.Count; i++) { InterfaceTalent Dtalent = charakter.getTalent(deviateList[i].getName()); talent.setTaw((deviateList[i].getRequiredTaW()).ToString()); Assert.AreEqual("1", Dtalent.getTAWBonus()); } //Das Doppelte ist für den Test des Entfernens (TAW sinkt) erforderlich talent.setTaw("0"); for (int i = 0; i < deviateList.Count; i++) { InterfaceTalent Dtalent = charakter.getTalent(deviateList[i].getName()); Assert.AreEqual("0", Dtalent.getTAWBonus()); } }