public void ReturnFalseIfNotDivisableBy4() { var leapYears = new LeapYears(); var result = leapYears.Calculate(2017); Assert.AreEqual(false, result); }
public void ReturnFalseIfDivisableBy100ButNotBy400() { var leapYears = new LeapYears(); var result = leapYears.Calculate(1700); Assert.AreEqual(false, result); }
public void ReturnTrueIfDivisableBy4ButNotBy100() { var leapYears = new LeapYears(); var result = leapYears.Calculate(2008); Assert.AreEqual(true, result); }
public void ReturnTrueIfYearIsDivisableBy400() { var leapYears = new LeapYears(); var result = leapYears.Calculate(8000); Assert.AreEqual(true, result); }