public static void ClearTest() { string[] anArray = { "one", "two", "three", "four" }; //tests that the collectionChanged events are fired. ReadOnlyCollectionAndPropertyChangedTester helper = new ReadOnlyCollectionAndPropertyChangedTester(); ObservableCollection <string> col = new ObservableCollection <string>(anArray); ReadOnlyObservableCollection <string> readonlyCol = new ReadOnlyObservableCollection <string>(col); helper.ClearTest(readonlyCol, col); }
public static void ClearTest() { string[] anArray = { "one", "two", "three", "four" }; //tests that the collectionChanged events are fired. ReadOnlyCollectionAndPropertyChangedTester helper = new ReadOnlyCollectionAndPropertyChangedTester(); ObservableCollection<string> col = new ObservableCollection<string>(anArray); ReadOnlyObservableCollection<string> readonlyCol = new ReadOnlyObservableCollection<string>(col); helper.ClearTest(readonlyCol, col); }