Example #1
0
        public void TestPositive()
        {
            var date = new DateTime(2014, 11, 22, 10, 44, 51);

            Assert.IsTrue(FarmDaysOff.IsDayOff(date), "Выходной не распознан");

            date = new DateTime(2013, 6, 15, 0, 0, 51);
            Assert.IsTrue(FarmDaysOff.IsDayOff(date), "Выходной не распознан");
        }
Example #2
0
        public void TestNegative()
        {
            var date = new DateTime(2014, 11, 21, 10, 44, 51);

            Assert.IsFalse(FarmDaysOff.IsDayOff(date), "Рабочий день не распознан");
        }