public void Test_IsSkillInList_SkillListParam_BadResult()
        {
            Skill objSkill = new Skill();

            objSkill.GetSkill(3);

            Skill objSkill2 = new Skill();

            objSkill2.GetSkill(4);

            List <Skill> lstSkills = new List <Skill>();

            lstSkills.Add(objSkill);
            lstSkills.Add(objSkill2);

            bool blnFunctionResult;
            int  intCharacterID = 1;

            CharacterSkill        objCharacterSkill  = new CharacterSkill();
            List <CharacterSkill> lstCharacterSkills = new List <CharacterSkill>();

            lstCharacterSkills = objCharacterSkill.GetCharacterSkills(intCharacterID);
            blnFunctionResult  = CharacterSkill.IsSkillInList(lstSkills, lstCharacterSkills);

            Assert.IsFalse(blnFunctionResult);
        }
        public void Test_GetCharacterSkill_ByCharacterIDOnly_BadResult()
        {
            int intCharacterID = 0;
            List <CharacterSkill> lstCharacterSkill = new List <CharacterSkill>();
            CharacterSkill        objCharacterSkill = new CharacterSkill();

            lstCharacterSkill = objCharacterSkill.GetCharacterSkills(intCharacterID);

            Assert.IsTrue(lstCharacterSkill.Count == 0);
        }
        public void Test_IsSkillInList_SkillObjParam_GoodResult()
        {
            Skill objSkill = new Skill();

            objSkill.GetSkill(5);

            bool blnFunctionResult;
            int  intCharacterID = 1;

            CharacterSkill        objCharacterSkill  = new CharacterSkill();
            List <CharacterSkill> lstCharacterSkills = new List <CharacterSkill>();

            lstCharacterSkills = objCharacterSkill.GetCharacterSkills(intCharacterID);
            blnFunctionResult  = CharacterSkill.IsSkillInList(objSkill, lstCharacterSkills);

            Assert.IsTrue(blnFunctionResult);
        }