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); }
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); }