private void Calculate()
 {
     _factors = FactorFinder.FindFactorList(_target);
     _factors.Add(_target);
     _isPrime   = PrimeChecker.IsPrime(_target);
     _isPerfect = PerfectChecker.IsPerfect(_target);
 }
        public void FactorListTest(int target, params int[] resultList)
        {
            List <int> factors = FactorFinder.FindFactorList(target);

            int[] targetArray = factors.ToArray();
            Assert.AreEqual(targetArray.Length, resultList.Length);
            if (targetArray.Length == resultList.Length)
            {
                for (int i = 0; i < targetArray.Length; i++)
                {
                    Assert.AreEqual(targetArray[i], resultList[i]);
                }
            }
        }