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.159 tracks/csharp/exercises/space-age/SpaceAgeTest.cs
trackler-2.2.1.158 tracks/csharp/exercises/space-age/SpaceAgeTest.cs
trackler-2.2.1.157 tracks/csharp/exercises/space-age/SpaceAgeTest.cs
trackler-2.2.1.156 tracks/csharp/exercises/space-age/SpaceAgeTest.cs
trackler-2.2.1.155 tracks/csharp/exercises/space-age/SpaceAgeTest.cs
trackler-2.2.1.154 tracks/csharp/exercises/space-age/SpaceAgeTest.cs
trackler-2.2.1.153 tracks/csharp/exercises/space-age/SpaceAgeTest.cs
trackler-2.2.1.152 tracks/csharp/exercises/space-age/SpaceAgeTest.cs