Beispiel #1
0
        public void Get10001stPrime()
        {
            var findPrime = new PrimeHelper();
            var result    = findPrime.GetNthPrime(10001);

            Assert.True(result == 104743);
        }
Beispiel #2
0
        public void GetNthPrime(uint nthPrime, uint target)
        {
            var findPrime = new PrimeHelper();

            var result = findPrime.GetNthPrime(nthPrime);

            Assert.True(result == target);
        }
Beispiel #3
0
 public void GetNthPrime_ReturnsCorrectResult(int number, int expectedResult)
 {
     PrimeHelper.GetNthPrime(number).Should().Be(expectedResult);
 }
Beispiel #4
0
 public long ComputeSolution()
 {
     return(PrimeHelper.GetNthPrime(NUMBER));
 }