public void TestGetNumOfDaysInMonth() { Date februaryLeapYearDate = new Date(1, 2, 2020); Date februaryDate = new Date(1, 2, 2017); Date longMonthDate = new Date(1, 3, 2017); Date shortMonthDate = new Date(1, 4, 2017); Assert.AreEqual(DateConstants.NumOfDaysInFebruaryLeapYear, DateService.GetNumOfDaysInMonth(februaryLeapYearDate)); Assert.AreEqual(DateConstants.NumOfDaysInFebruary, DateService.GetNumOfDaysInMonth(februaryDate)); Assert.AreEqual(DateConstants.NumOfDaysInLongMonth, DateService.GetNumOfDaysInMonth(longMonthDate)); Assert.AreEqual(DateConstants.NumOfDaysInMonth, DateService.GetNumOfDaysInMonth(shortMonthDate)); }