예제 #1
0
        public void Factorize_1()
        {
            var expectedResult = new List <int>();
            var result         = PrimeFactorer.Factorize(1);

            CollectionAssert.AreEquivalent(expectedResult, result);
        }
예제 #2
0
        public void Factorize_4538()
        {
            var expectedResult = new List <int> {
                2, 2269
            };
            var result = PrimeFactorer.Factorize(4538);

            CollectionAssert.AreEquivalent(expectedResult, result);
        }