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