public void Primes_GenerateNPrimes_ReturnsNthPrime2(int nthPrime, int expected) { var sut = new PrimeNumberGenerator(); var actual = sut.Primes().Skip(nthPrime - 1).First(); Assert.Equal(expected, actual); }
public void Primes_GenerateNPrimes_ReturnsNthPrime2(int nthPrime, int expected) { var sut = new PrimeNumberGenerator(); var actual = sut.Primes().Skip(nthPrime - 1).First(); Assert.Equal(expected, actual); }