public void GetDebtsByServices() { var res = UserDefinedFunctions.GetDebtsByServices("11789150", new DateTime(2012, 10, 1), new DateTime(2017, 1, 31)); Assert.IsInstanceOfType(res, typeof(IEnumerable)); Assert.IsTrue((res as DataRowCollection).Count > 0); }