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.8.14 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.13 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.12 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.11 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.10 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.9 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.8 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.7 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.6 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.5 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.4 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.3 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.2 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.8.1 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.7.0 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.44 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.43 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.42 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.41 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs
trackler-2.0.6.40 tracks/csharp/exercises/nth-prime/NthPrimeTest.cs