Sha256: 29dcd9417d5316f52e10971b5e8760f363e2ee694b0a92b7b320da8a7f135af1

Contents?: true

Size: 796 Bytes

Versions: 28

Compression:

Stored size: 796 Bytes

Contents

// This file was auto-generated based on version 2.1.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

28 entries across 28 versions & 1 rubygems

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