Example #1
0
        public void ReturnFalseIfNotDivisableBy4()
        {
            var leapYears = new LeapYears();
            var result    = leapYears.Calculate(2017);

            Assert.AreEqual(false, result);
        }
Example #2
0
        public void ReturnFalseIfDivisableBy100ButNotBy400()
        {
            var leapYears = new LeapYears();
            var result    = leapYears.Calculate(1700);

            Assert.AreEqual(false, result);
        }
Example #3
0
        public void ReturnTrueIfDivisableBy4ButNotBy100()
        {
            var leapYears = new LeapYears();
            var result    = leapYears.Calculate(2008);

            Assert.AreEqual(true, result);
        }
Example #4
0
        public void ReturnTrueIfYearIsDivisableBy400()
        {
            var leapYears = new LeapYears();
            var result    = leapYears.Calculate(8000);

            Assert.AreEqual(true, result);
        }