public void InsertTest() { SortedObservableCollection <int> mySortedCollection = new SortedObservableCollection <int>(); mySortedCollection.Insert(0, 5); mySortedCollection.Insert(0, 2); mySortedCollection.Insert(1, 3); mySortedCollection.Insert(0, 7); mySortedCollection.Insert(1, 9); Assert.AreEqual(5, mySortedCollection.Count); Assert.AreEqual(2, mySortedCollection[0]); Assert.AreEqual(3, mySortedCollection[1]); Assert.AreEqual(5, mySortedCollection[2]); Assert.AreEqual(7, mySortedCollection[3]); Assert.AreEqual(9, mySortedCollection[4]); }