public void Test_GetCharacterClassLevel_BadResult()
        {
            bool blnIsInList;
            List <CharacterClassLevel> lstCharacterClassLevel = new List <CharacterClassLevel>();

            lstCharacterClassLevel = objNewCharacterClassLevel.GetCharacterClassLevel(1);

            blnIsInList = CharacterClassLevel.IsCharacterClassLevelInList(objNewCharacterClassLevel, lstCharacterClassLevel);

            Assert.IsFalse(blnIsInList);
        }
        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);
        }
        public void Test_SaveAndDeleteCharacterClassLevel()
        {
            bool returnVal;
            CharacterClassLevel        objCharacterClassLevel = new CharacterClassLevel();
            List <CharacterClassLevel> lstCharClassLevel      = new List <CharacterClassLevel>();

            objNewCharacterClassLevel.SaveCharacterClassLevel();
            lstCharClassLevel = objNewCharacterClassLevel.GetCharacterClassLevel(1);
            Assert.IsTrue(CharacterClassLevel.IsCharacterClassLevelInList(objNewCharacterClassLevel, lstCharClassLevel));

            returnVal = objNewCharacterClassLevel.DeleteCharacterClassLevel();

            Assert.IsTrue(returnVal && objNewCharacterClassLevel.DeleteOK);
        }