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.1.0.34 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.33 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.32 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.31 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.30 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.29 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.28 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.27 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.26 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.25 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.24 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.23 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.22 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.21 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.20 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.19 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.18 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.17 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.16 tracks/csharp/exercises/leap/LeapTest.cs
trackler-2.1.0.15 tracks/csharp/exercises/leap/LeapTest.cs