Sha256: f82006d63218c2c3c9fb23c3345ac2a469889ac1bae74cca3423a6f9cb8d6c67

Contents?: true

Size: 1.44 KB

Versions: 28

Compression:

Stored size: 1.44 KB

Contents

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

using Xunit;

public class SpaceAgeTest
{
    [Fact]
    public void Age_on_earth()
    {
        var sut = new SpaceAge(1000000000);
        Assert.Equal(31.69, sut.OnEarth());
    }

    [Fact(Skip = "Remove to run test")]
    public void Age_on_mercury()
    {
        var sut = new SpaceAge(2134835688);
        Assert.Equal(280.88, sut.OnMercury());
    }

    [Fact(Skip = "Remove to run test")]
    public void Age_on_venus()
    {
        var sut = new SpaceAge(189839836);
        Assert.Equal(9.78, sut.OnVenus());
    }

    [Fact(Skip = "Remove to run test")]
    public void Age_on_mars()
    {
        var sut = new SpaceAge(2329871239);
        Assert.Equal(39.25, sut.OnMars());
    }

    [Fact(Skip = "Remove to run test")]
    public void Age_on_jupiter()
    {
        var sut = new SpaceAge(901876382);
        Assert.Equal(2.41, sut.OnJupiter());
    }

    [Fact(Skip = "Remove to run test")]
    public void Age_on_saturn()
    {
        var sut = new SpaceAge(3000000000);
        Assert.Equal(3.23, sut.OnSaturn());
    }

    [Fact(Skip = "Remove to run test")]
    public void Age_on_uranus()
    {
        var sut = new SpaceAge(3210123456);
        Assert.Equal(1.21, sut.OnUranus());
    }

    [Fact(Skip = "Remove to run test")]
    public void Age_on_neptune()
    {
        var sut = new SpaceAge(8210123456);
        Assert.Equal(1.58, sut.OnNeptune());
    }
}

Version data entries

28 entries across 28 versions & 1 rubygems

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