public void GetDebtsByPeriod() { var res = UserDefinedFunctions.GetDebtsByPeriod("11816105", new DateTime(2004, 12, 1), new DateTime(2016, 10, 1)); Assert.IsInstanceOfType(res, typeof(IEnumerable)); Assert.IsTrue((res as DataRowCollection).Count > 1); }