public void TestTwoIsPrime()
 {
     var primality = new PrimalityTest();
     bool result = primality.IsProbablePrime(2);
     Assert.IsTrue(result);
 }
 public void TestKnownPrimeIsPrime()
 {
     var primality = new PrimalityTest();
     bool result = primality.IsProbablePrime(127);
     Assert.IsTrue(result);
 }
 public void TestOneIsNotPrime()
 {
     var primality = new PrimalityTest();
     bool result = primality.IsProbablePrime(1);
     Assert.IsFalse(result);
 }
 public void TestEvenNumberOverTwoIsNotPrime()
 {
     var primality = new PrimalityTest();
     bool result = primality.IsProbablePrime(123456);
     Assert.IsFalse(result);
 }