Sha256: 06ceaf754bfc292e61270dfc1a1b33d3e4fd086013e9dba89236bbfdacf44110

Contents?: true

Size: 796 Bytes

Versions: 83

Compression:

Stored size: 796 Bytes

Contents

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

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

83 entries across 83 versions & 1 rubygems

Version Path
trackler-2.2.1.151 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.150 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.149 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.148 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.147 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.146 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.145 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.144 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.143 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.142 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.141 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.140 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.139 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.138 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.137 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.136 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.135 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.134 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.133 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.132 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs