public void CanGetTheHighestPrimeFactorOf600851475143()
 {
     var primeChecker = new PrimeChecker();
     var primes = new PrimeFactorGenerator(primeChecker);
     var factors = primes.GetPrimeFactors(600851475143);
     Assert.That(factors.Max(), Is.EqualTo(6857));
 }
 public void CanGetThePrimeFactorsOf13195()
 {
     var primeChecker = new PrimeChecker();
     var primes = new PrimeFactorGenerator(primeChecker);
     var result = primes.GetPrimeFactors(13195);
     Assert.That(result.Contains(5));
     Assert.That(result.Contains(7));
     Assert.That(result.Contains(13));
     Assert.That(result.Contains(29));
     Assert.That(result.Count(), Is.EqualTo(4));
 }