Esempio n. 1
0
        public void TestGetMonthDiffInDays()
        {
            Date startDate1 = new Date(27, 2, 2015);
            Date endDate1   = new Date(7, 12, 2015);

            Date startDate2 = new Date(27, 3, 2015);
            Date endDate2   = new Date(30, 3, 2015);


            Assert.AreEqual(283, DateService.GetMonthDiffInDays(startDate1, endDate1));
            Assert.AreEqual(3, DateService.GetMonthDiffInDays(startDate2, endDate2));
        }