Exemplo n.º 1
0
        public void Test_GetSubSkill_ByID_BadResult()
        {
            int      intSubSkillID = 0;
            SubSkill objSubSkill   = new SubSkill();

            objSubSkill.GetSubSkill(intSubSkillID);

            Assert.IsNull(objSubSkill.SubSkillName);
        }
Exemplo n.º 2
0
        public void Test_GetSubSkill_ByName_BadResult()
        {
            string   strSubSkillName = "blah blah";
            SubSkill objSubSkill     = new SubSkill();

            objSubSkill.GetSubSkill(strSubSkillName);

            Assert.IsNull(objSubSkill.SubSkillName);
        }
Exemplo n.º 3
0
        public void Test_GetSubSkill_ByID_GoodResult()
        {
            int      intSubSkillID = 1;
            SubSkill objSubSkill   = new SubSkill();

            objSubSkill.GetSubSkill(intSubSkillID);

            Assert.AreEqual(intSubSkillID, objSubSkill.SubSkillID);
        }
Exemplo n.º 4
0
        public void Test_GetSubSkill_ByName_GoodResult()
        {
            string   strSubSkillName = "Run";
            SubSkill objSubSkill     = new SubSkill();

            objSubSkill.GetSubSkill(strSubSkillName);

            Assert.AreEqual(strSubSkillName, objSubSkill.SubSkillName);
        }