Exemplo n.º 1
0
        public void Generate_PrimesOf9_Returned3x3()
        {
            var sut = new PrimeFactorizer();

            IList<int> result = sut.Factorize(9);

            result.ShouldMatch(3, 3);
        }
Exemplo n.º 2
0
        public void Generate_PrimesOf6_Returned3x2()
        {
            var sut = new PrimeFactorizer();

            IList<int> result = sut.Factorize(6);

            result.ShouldContainItems(new[] {3, 2});
        }
Exemplo n.º 3
0
        public void Generate_PrimesOf8_Returned2x2x2()
        {
            var sut = new PrimeFactorizer();

            IList<int> result = sut.Factorize(8);

            result.ShouldMatch(2, 2, 2);
        }
Exemplo n.º 4
0
        public void Generate_PrimesOf1_EmptyList()
        {
            var sut = new PrimeFactorizer();

            IList<int> result = sut.Factorize(1);

            result.ShouldBeEmpty();
        }