Sha256: 283d144b4f30d782154d28c06a894c2f9390b4c43d5bb05b255866f3566c6bd6

Contents?: true

Size: 953 Bytes

Versions: 115

Compression:

Stored size: 953 Bytes

Contents

using NUnit.Framework;

public class NthPrimeTest
{
    [TestCase(1, ExpectedResult = 2)]
    [TestCase(2, ExpectedResult = 3, Ignore = "Remove to run test case")]
    [TestCase(3, ExpectedResult = 5, Ignore = "Remove to run test case")]
    [TestCase(4, ExpectedResult = 7, Ignore = "Remove to run test case")]
    [TestCase(5, ExpectedResult = 11, Ignore = "Remove to run test case")]
    [TestCase(6, ExpectedResult = 13, Ignore = "Remove to run test case")]
    [TestCase(7, ExpectedResult = 17, Ignore = "Remove to run test case")]
    [TestCase(8, ExpectedResult = 19, Ignore = "Remove to run test case")]
    [TestCase(1000, ExpectedResult = 7919, Ignore = "Remove to run test case")]
    [TestCase(10000, ExpectedResult = 104729, Ignore = "Remove to run test case")]
    [TestCase(10001, ExpectedResult = 104743, Ignore = "Remove to run test case")]
    public int Nth_prime_calculated(int nth)
    {
        return NthPrime.Nth(nth);
    }
}

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
trackler-2.0.6.19 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.18 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.17 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.16 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.15 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.14 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.13 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.12 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.11 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.10 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.9 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.8 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.7 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.6 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.5 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.4 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.3 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.2 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.1 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.0 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs