public void Can_Reject_Candidate_When_Not_Prime() { var primeEvaluationEngine = new PrimeEvaluationEngine(); Assert.IsFalse(primeEvaluationEngine.IsPrime(NON_PRIME_TEST_VALUE)); }
public void Can_Reject_Candidate() { var primeEvaluationEngine = new PrimeEvaluationEngine(); Assert.IsFalse(primeEvaluationEngine.IsPrime(1)); }
public void Can_Accept_Candidate_When_Prime() { var primeEvaluationEngine = new PrimeEvaluationEngine(); Assert.IsTrue(primeEvaluationEngine.IsPrime(PRIME_TEST_VALUE)); }
public void Can_Accept_Candidate() { var primeEvaluationEngine = new PrimeEvaluationEngine(); Assert.IsTrue(primeEvaluationEngine.IsPrime(2)); }
public PrimeGenerator(PrimeEvaluationEngine primeEvaluationEngine) { _primeEvaluationEngine = primeEvaluationEngine; }
public void Can_Create_Instance() { var primeNumberEngine = new PrimeEvaluationEngine(); Assert.IsNotNull(primeNumberEngine); }