public void CanGetRandomPrime(int bitLength) { var pg = new PrimeNumberGenerator(); for (int i = 0; i < 3; i++) { var prime = pg.GetRandomPrime(bitLength, 3); var isPrime = IsPrime((long)prime); Assert.True(isPrime); } }
public void CanGetRandomPrime(int bitLength) { var pg = new PrimeNumberGenerator(); for (int i = 0; i < 3; i++) { var prime = pg.GetRandomPrime(bitLength, 3); var isPrime = IsPrime((long)prime); Assert.True(isPrime); } }