public void ListSupportShouldGetAndSetItems() { var list = new SimpleList<int>(); var test = new SimpleList<int>(); for (var i = 0; i < 30; i++) list.Add(i); var listSupport = new ListSupport(); var items = listSupport.GetItems(list); listSupport.SetItems(test, items); var matches = true; for (var i = 0; i < list.Count; i++) { if (list[i].Equals(test[i])) continue; matches = false; break; } Assert.IsTrue(matches); }