public void Test_GetCharacterTalents_ByID_BadResult() { int CharacterID = 0; Talent objTalent = new Talent(); List <Talent> lstTalents = new List <Talent>(); lstTalents = objTalent.GetCharacterTalents(CharacterID); Assert.IsTrue(lstTalents.Count == 0); }
public void Test_SaveAndDeleteCharacterTalent() { bool returnVal; int CharacterID = 1; int TalentID = 50; Talent objTalent = new Talent(); Talent objTalent2 = new Talent(); objTalent.GetTalent(TalentID); objTalent2.SaveCharacterTalent(CharacterID, TalentID); List <Talent> lstTalent = new List <Talent>(); lstTalent = objTalent.GetCharacterTalents(CharacterID); Assert.IsTrue(Talent.IsTalentInList(objTalent, lstTalent)); returnVal = objTalent.DeleteCharacterTalent(CharacterID, TalentID); Assert.IsTrue(returnVal && objTalent.DeleteOK); }