public void Prime_Factors_of_twelve(int number) { var primeFactorGenerator = new PrimeFactorGenerator(); var expectedPrimeFactors = new List <int> { 2, 2, 3 }; Assert.Equal(expectedPrimeFactors, primeFactorGenerator.GetPrimeFactors(number)); }
public void Prime_Factors_of_One(int number) { var primeFactorGenerator = new PrimeFactorGenerator(); Assert.Empty(primeFactorGenerator.GetPrimeFactors(number)); }