public static void ValidateByteArrays(IEnumerable<byte> array1, IList<byte> array2) { Assert.IsTrue(!array1.Where((t, i) => t != array2[i]).Any()); }