public void GetPrimes()
 {
     Assert.AreEqual(new List <int>()
     {
         2, 3, 5, 7
     }, CommonPrimeDivisors.GetPrimes(10));
 }
 public void ExceptionTest()
 {
     for (int i = 2; i < 100; i++)
     {
         Assert.DoesNotThrow(() => CommonPrimeDivisors.PrimeDivisors(i));
     }
 }
        public void HaveSamePrimeDivisors()
        {
            Assert.AreEqual(true, CommonPrimeDivisors.HaveSamePrimeDivisors(15, 75));
            Assert.AreEqual(false, CommonPrimeDivisors.HaveSamePrimeDivisors(10, 30));
            Assert.AreEqual(false, CommonPrimeDivisors.HaveSamePrimeDivisors(3, 5));


            //Assert.AreEqual(false, CommonPrimeDivisors.HaveSamePrimeDivisors(3, 5000000));
        }
 public void GetPrimeDivisors()
 {
     Assert.AreEqual(new List <int>()
     {
         3, 5
     }, CommonPrimeDivisors.PrimeDivisors(15));
     Assert.AreEqual(new List <int>()
     {
         3, 5
     }, CommonPrimeDivisors.PrimeDivisors(75));
     Assert.AreEqual(new List <int>()
     {
         2, 5
     }, CommonPrimeDivisors.PrimeDivisors(10));
     Assert.AreEqual(new List <int>()
     {
         2, 3, 5
     }, CommonPrimeDivisors.PrimeDivisors(30));
     Assert.AreEqual(new List <int>()
     {
         3
     }, CommonPrimeDivisors.PrimeDivisors(9));
 }