public virtual void Remove(object item)
{
CheckDisposed();
int index = m_list.IndexOf(item);
if (index >= 0)
RemoveAt(index);
}
public void Remove_CollectionWithSingleElement_CollectionShouldBeEmpty() { using (var listBox = new FwListBox()) { using (var collection = new FwListBox.ObjectCollection(listBox)) { ITsString testString = TsStringHelper.MakeTSS("test", m_hvoEnglishWs); collection.Add(testString); // The Test collection.Remove(testString); Assert.AreEqual(0, collection.Count); Assert.IsFalse(collection.Contains(testString)); } } }