Sha256: b157e035bcf3847be22f244053120b4660cfc2c9d53a169e6ac73970821c2596

Contents?: true

Size: 796 Bytes

Versions: 90

Compression:

Stored size: 796 Bytes

Contents

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

90 entries across 90 versions & 1 rubygems

Version Path
trackler-2.2.1.67 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.66 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.65 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.64 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.63 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.62 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.61 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.60 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.59 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.58 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.57 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.56 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.55 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.54 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.53 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.52 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.51 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.50 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.49 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.2.1.48 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs