Sha256: 064aab006b06bc178976daf6d13faaf64521160d26c1e2366f0be4394adf4c57

Contents?: true

Size: 657 Bytes

Versions: 69

Compression:

Stored size: 657 Bytes

Contents

using Xunit;

public class LeapTest
{
    [Fact]
    public void Year_not_divisible_by_4_is_common_year()
    {
        Assert.False(Leap.IsLeapYear(2015));
    }

    [Fact(Skip = "Remove to run test")]
    public void Year_divisible_by_4_not_divisible_by_100_is_leap_year()
    {
        Assert.True(Leap.IsLeapYear(2016));
    }

    [Fact(Skip = "Remove to run test")]
    public void Year_divisible_by_100_not_divisible_by_400_is_common_year()
    {
        Assert.False(Leap.IsLeapYear(2100));
    }

    [Fact(Skip = "Remove to run test")]
    public void Year_divisible_by_400_is_leap_year()
    {
        Assert.True(Leap.IsLeapYear(2000));
    }
}

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.0.8.30 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.0.8.29 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.0.8.28 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.0.8.27 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.0.8.26 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.0.8.24 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.0.8.23 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.0.8.22 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.0.8.21 tracks/csharp/exercises/leap/LeapTest.cs