public void CopyToTest() { // Arrange int capacity = 3; LimitedList <object> list = new LimitedList <object>(capacity) { new object(), new object(), new object(), }; object[] arr = new object[3]; // Act list.CopyTo(arr, 0); // Assert for (int i = 0; i < 3; i++) { Assert.AreEqual(list[i], arr[i]); } }