Sha256: cc565625ca05331f8ccc9f074f6d75b83c8955b22c9d65aae43c8b50d1d36a68
Contents?: true
Size: 651 Bytes
Versions: 115
Compression:
Stored size: 651 Bytes
Contents
using NUnit.Framework; [TestFixture] public class LeapTest { [Test] public void Valid_leap_year() { Assert.That(Year.IsLeap(1996), Is.True); } [Ignore("Remove to run test")] [Test] public void Invalid_leap_year() { Assert.That(Year.IsLeap(1997), Is.False); } [Ignore("Remove to run test")] [Test] public void Turn_of_the_20th_century_is_not_a_leap_year() { Assert.That(Year.IsLeap(1900), Is.False); } [Ignore("Remove to run test")] [Test] public void Turn_of_the_25th_century_is_a_leap_year() { Assert.That(Year.IsLeap(2400), Is.True); } }
Version data entries
115 entries across 115 versions & 1 rubygems