Sha256: fecc6e7e032b5bd08e26b1e8d53cc30d14dc44f36affd65f7c026bc5a7db1221

Contents?: true

Size: 717 Bytes

Versions: 65

Compression:

Stored size: 717 Bytes

Contents

using Xunit;
using System;

public class NthPrimeTest
{
    [Fact]
    public void First_prime()
    {
        Assert.Equal(2, NthPrime.Prime(1));
    }

    [Fact(Skip = "Remove to run test")]
    public void Second_prime()
    {
        Assert.Equal(3, NthPrime.Prime(2));
    }

    [Fact(Skip = "Remove to run test")]
    public void Sixth_prime()
    {
        Assert.Equal(13, NthPrime.Prime(6));
    }

    [Fact(Skip = "Remove to run test")]
    public void Big_prime()
    {
        Assert.Equal(104743, NthPrime.Prime(10001));
    }

    [Fact(Skip = "Remove to run test")]
    public void There_is_no_zeroth_prime()
    {
        Assert.Throws<ArgumentOutOfRangeException>(() => NthPrime.Prime(0));
    }
}

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
trackler-2.1.0.34 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.33 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.32 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.31 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.30 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.29 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.28 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.27 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.26 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.25 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.24 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.23 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.22 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.21 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.20 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.19 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.18 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.17 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.16 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.1.0.15 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs