private static bool AreEqual <T>(List <T> list1, List <T> list2)
 {
     if (list1.Count != list2.Count)
     {
         return(false);
     }
     for (var i = 0; i < list1.Count; i++)
     {
         if (!CommonHelpers.AreObjectsEqual(list1[i], list2[i]))
         {
             return(false);
         }
     }
     return(true);
 }