public void Test_GetSizeDefenseModifiers_WithOutOrderBy_NoResult() { string strWhere = "SizeID=4"; string strOrderBy = ""; SizeDefenseModifier objSizeDefenseModifier = new SizeDefenseModifier(); List <SizeDefenseModifier> lstSizeDefenseModifiers = new List <SizeDefenseModifier>(); lstSizeDefenseModifiers = objSizeDefenseModifier.GetSizeDefenseModifiers(strWhere, strOrderBy); Assert.IsTrue(lstSizeDefenseModifiers.Count == 0); }
public void Test_GetSizeDefenseModifiers_WithOrderBy_GoodResult() { string strWhere = "SizeID IN (1,2)"; string strOrderBy = "SizeID"; SizeDefenseModifier objSizeDefenseModifier = new SizeDefenseModifier(); List <SizeDefenseModifier> lstSizeDefenseModifiers = new List <SizeDefenseModifier>(); lstSizeDefenseModifiers = objSizeDefenseModifier.GetSizeDefenseModifiers(strWhere, strOrderBy); Assert.IsTrue(lstSizeDefenseModifiers.Count > 0); }