Sha256: fdf33f1b4116f2de93d4f62b222ae3bab48773b2e113d611f7b836780fe1ff44

Contents?: true

Size: 1.15 KB

Versions: 28

Compression:

Stored size: 1.15 KB

Contents

// This file was auto-generated based on version 1.1.0 of the canonical data.

using Xunit;
using System;

public class GigasecondTest
{
    [Fact]
    public void Date_only_specification_of_time()
    {
        Assert.Equal(new DateTime(2043, 1, 1, 1, 46, 40), Gigasecond.Add(new DateTime(2011, 4, 25)));
    }

    [Fact(Skip = "Remove to run test")]
    public void Second_test_for_date_only_specification_of_time()
    {
        Assert.Equal(new DateTime(2009, 2, 19, 1, 46, 40), Gigasecond.Add(new DateTime(1977, 6, 13)));
    }

    [Fact(Skip = "Remove to run test")]
    public void Third_test_for_date_only_specification_of_time()
    {
        Assert.Equal(new DateTime(1991, 3, 27, 1, 46, 40), Gigasecond.Add(new DateTime(1959, 7, 19)));
    }

    [Fact(Skip = "Remove to run test")]
    public void Full_time_specified()
    {
        Assert.Equal(new DateTime(2046, 10, 2, 23, 46, 40), Gigasecond.Add(new DateTime(2015, 1, 24, 22, 0, 0)));
    }

    [Fact(Skip = "Remove to run test")]
    public void Full_time_with_day_roll_over()
    {
        Assert.Equal(new DateTime(2046, 10, 3, 1, 46, 39), Gigasecond.Add(new DateTime(2015, 1, 24, 23, 59, 59)));
    }
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.179 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.178 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.177 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.176 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.175 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.174 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.173 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.172 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.171 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.170 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.169 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.167 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.166 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.165 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.164 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.163 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.162 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.161 tracks/csharp/exercises/gigasecond/GigasecondTest.cs
trackler-2.2.1.160 tracks/csharp/exercises/gigasecond/GigasecondTest.cs