public void CopyTo_InputItemsAtSpecificIndex_ResultingArrayEqual(int index, params int[] items) { var collection = new ExtendedObservableCollection <int>(items); var buffer = new int[items.Length + index]; collection.CopyTo(buffer, index); Assert.Equal(items, collection); Assert.Equal(collection, buffer.Skip(index)); }
public void CopyTo_InputItemsAtIndexZero_ResultingArrayEqual(params int[] items) { var collection = new ExtendedObservableCollection <int>(items); var buffer = new int[items.Length]; collection.CopyTo(buffer, 0); Assert.Equal(items, collection); Assert.Equal(collection, buffer); }