Ejemplo n.º 1
0
        public void Test_GetExtraClassItem_ByID_BadResult()
        {
            int            intExtraClassItemID = 0;
            ExtraClassItem objExtraClassItem   = new ExtraClassItem();

            objExtraClassItem.GetExtraClassItem(intExtraClassItemID);

            Assert.IsNull(objExtraClassItem.ExtraClassLevelItemName);
        }
Ejemplo n.º 2
0
        public void Test_GetExtraClassItem_ByID_GoodResult()
        {
            int            intExtraClassItemID = 1;
            ExtraClassItem objExtraClassItem   = new ExtraClassItem();

            objExtraClassItem.GetExtraClassItem(intExtraClassItemID);

            Assert.AreEqual(intExtraClassItemID, objExtraClassItem.ExtraClassLevelItemID);
        }
Ejemplo n.º 3
0
        public void Test_GetExtraClassItem_ByName_BadResult()
        {
            string         strExtraClassLevelItemName = "blah blah";
            ExtraClassItem objExtraClassItem          = new ExtraClassItem();

            objExtraClassItem.GetExtraClassItem(strExtraClassLevelItemName);

            Assert.IsNull(objExtraClassItem.ExtraClassLevelItemName);
        }
Ejemplo n.º 4
0
        public void Test_GetExtraClassItem_ByName_GoodResult()
        {
            string         strExtraClassLevelItemName = "LightSaber";
            ExtraClassItem objExtraClassItem          = new ExtraClassItem();

            objExtraClassItem.GetExtraClassItem(strExtraClassLevelItemName);

            Assert.AreEqual(strExtraClassLevelItemName, objExtraClassItem.ExtraClassLevelItemName);
        }
Ejemplo n.º 5
0
        public void Test_GetExtraClassItems_WithOutOrderBy_NoResult()
        {
            string strWhere   = "ExtraClassLevelItemName Like '%Toad%'";
            string strOrderBy = "";

            ExtraClassItem        objExtraClassItem  = new ExtraClassItem();
            List <ExtraClassItem> lstExtraClassItems = new List <ExtraClassItem>();

            lstExtraClassItems = objExtraClassItem.GetExtraClassItems(strWhere, strOrderBy);

            Assert.IsTrue(lstExtraClassItems.Count == 0);
        }
Ejemplo n.º 6
0
        public void Test_GetExtraClassItems_WithOrderBy_GoodResult()
        {
            string strWhere   = "ExtraClassLevelItemName Like '%LightSaber%'";
            string strOrderBy = "ExtraClassLevelItemName";

            ExtraClassItem        objExtraClassItem  = new ExtraClassItem();
            List <ExtraClassItem> lstExtraClassItems = new List <ExtraClassItem>();

            lstExtraClassItems = objExtraClassItem.GetExtraClassItems(strWhere, strOrderBy);

            Assert.IsTrue(lstExtraClassItems.Count > 0);
        }