public void Test_GetCharacterClassLevel_ByCharacterID_BadResult() { int CharacterID = 0; CharacterClassLevel objCharacterClassLevel = new CharacterClassLevel(); objCharacterClassLevel.GetCharacterClassLevel(CharacterID); Assert.IsTrue(objCharacterClassLevel.ClassLevel == 0 && objCharacterClassLevel.ClassID == 0 && objCharacterClassLevel.CharacterID == 0); }
public void Test_GetCharacterClassLevel_ByCharacterID_GoodResult() { int CharacterID = 1; CharacterClassLevel objCharacterClassLevel = new CharacterClassLevel(); List <CharacterClassLevel> lstCharClassLevel = new List <CharacterClassLevel>(); lstCharClassLevel = objCharacterClassLevel.GetCharacterClassLevel(CharacterID); Assert.IsTrue(lstCharClassLevel.Count > 0); }
public void Test_GetCharacterClassLevel_GoodResult() { bool blnIsInList = false; CharacterClassLevel objCharacterClassLevel = new CharacterClassLevel(); List <CharacterClassLevel> lstCharacterClassLevel = new List <CharacterClassLevel>(); lstCharacterClassLevel = objNewCharacterClassLevel.GetCharacterClassLevel(1); objCharacterClassLevel = lstCharacterClassLevel[0]; blnIsInList = CharacterClassLevel.IsCharacterClassLevelInList(objCharacterClassLevel, lstCharacterClassLevel); Assert.IsTrue(blnIsInList); }