You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
649 B

// This file was auto-generated based on version 1.2.0 of the canonical data.
using Xunit;
public class LeapTest
{
[Fact]
public void Year_not_divisible_by_4_is_common_year()
{
Assert.False(Leap.IsLeapYear(2015));
}
[Fact]
public void Year_divisible_by_4_not_divisible_by_100_is_leap_year()
{
Assert.True(Leap.IsLeapYear(1996));
}
[Fact]
public void Year_divisible_by_100_not_divisible_by_400_is_common_year()
{
Assert.False(Leap.IsLeapYear(2100));
}
[Fact]
public void Year_divisible_by_400_is_leap_year()
{
Assert.True(Leap.IsLeapYear(2000));
}
}