private static void AssertEquals<T>(FastCollection<T> collection, IEnumerable<T> enumerable)
 {
     var array = enumerable as T[] ?? enumerable.ToArray();
     Assert.Equal(array.Length, collection.Count);
     Assert.True(collection.All(e => array.Contains(e)));
 }