Пример #1
0
        public void Test_GetExtraClassItem_ByID_BadResult()
        {
            int            intExtraClassItemID = 0;
            ExtraClassItem objExtraClassItem   = new ExtraClassItem();

            objExtraClassItem.GetExtraClassItem(intExtraClassItemID);

            Assert.IsNull(objExtraClassItem.ExtraClassLevelItemName);
        }
Пример #2
0
        public void Test_GetExtraClassItem_ByName_BadResult()
        {
            string         strExtraClassLevelItemName = "blah blah";
            ExtraClassItem objExtraClassItem          = new ExtraClassItem();

            objExtraClassItem.GetExtraClassItem(strExtraClassLevelItemName);

            Assert.IsNull(objExtraClassItem.ExtraClassLevelItemName);
        }
Пример #3
0
        public void Test_GetExtraClassItem_ByID_GoodResult()
        {
            int            intExtraClassItemID = 1;
            ExtraClassItem objExtraClassItem   = new ExtraClassItem();

            objExtraClassItem.GetExtraClassItem(intExtraClassItemID);

            Assert.AreEqual(intExtraClassItemID, objExtraClassItem.ExtraClassLevelItemID);
        }
Пример #4
0
        public void Test_GetExtraClassItem_ByName_GoodResult()
        {
            string         strExtraClassLevelItemName = "LightSaber";
            ExtraClassItem objExtraClassItem          = new ExtraClassItem();

            objExtraClassItem.GetExtraClassItem(strExtraClassLevelItemName);

            Assert.AreEqual(strExtraClassLevelItemName, objExtraClassItem.ExtraClassLevelItemName);
        }