public void ShouldReturnWhetherNumberIsPrime(int number, bool expected) { PrimeFactorDoer primeFactorDoer = new PrimeFactorDoer(); Assert.AreEqual(expected, primeFactorDoer.IsPrime(number)); }
public void ShouldReturnPrimeFactors(int[] expected, int number) { PrimeFactorDoer primeFactorDoer = new PrimeFactorDoer(); Assert.AreEqual(expected, primeFactorDoer.GetPrimeFactors(number)); }