Exemplo n.º 1
0
    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));
    }
Exemplo n.º 2
0
    public void Prime_Factors_of_One(int number)
    {
        var primeFactorGenerator = new PrimeFactorGenerator();

        Assert.Empty(primeFactorGenerator.GetPrimeFactors(number));
    }