public static void MoveTest() { ReadOnlyCollectionAndPropertyChangedTester helper = new ReadOnlyCollectionAndPropertyChangedTester(); string[] anArrayString = new string[] { "one", "two", "three", "four" }; ObservableCollection <string> collection = new ObservableCollection <string>(anArrayString); ReadOnlyObservableCollection <string> readonlyCol = new ReadOnlyObservableCollection <string>(collection); helper.MoveItemTest(readonlyCol, collection, 0, 2); helper.MoveItemTest(readonlyCol, collection, 3, 0); helper.MoveItemTest(readonlyCol, collection, 1, 2); }
public static void MoveTest() { ReadOnlyCollectionAndPropertyChangedTester helper = new ReadOnlyCollectionAndPropertyChangedTester(); string[] anArrayString = new string[] { "one", "two", "three", "four" }; ObservableCollection<string> collection = new ObservableCollection<string>(anArrayString); ReadOnlyObservableCollection<string> readonlyCol = new ReadOnlyObservableCollection<string>(collection); helper.MoveItemTest(readonlyCol, collection, 0, 2); helper.MoveItemTest(readonlyCol, collection, 3, 0); helper.MoveItemTest(readonlyCol, collection, 1, 2); }