public void Test_GetConditionTracks_WithOutOrderBy_NoResult() { string strWhere = "Description Like '%Toad%'"; string strOrderBy = ""; ConditionTrack objConditionTrack = new ConditionTrack(); List <ConditionTrack> lstConditionTracks = new List <ConditionTrack>(); lstConditionTracks = objConditionTrack.GetConditionTracks(strWhere, strOrderBy); Assert.IsTrue(lstConditionTracks.Count == 0); }
public void Test_GetConditionTracks_WithOrderBy_GoodResult() { string strWhere = "Description Like '%Modifier%'"; string strOrderBy = "Description"; ConditionTrack objConditionTrack = new ConditionTrack(); List <ConditionTrack> lstConditionTracks = new List <ConditionTrack>(); lstConditionTracks = objConditionTrack.GetConditionTracks(strWhere, strOrderBy); Assert.IsTrue(lstConditionTracks.Count > 0); }