public void RemoveIndexRemovesItemFromList()
        {
            list.SaveServer(new Server("1.2.3.4", 5678), "SAVED");

            list.RemoveIndex(2);

            Assert.AreEqual(2, list.Count);
        }
Ejemplo n.º 2
0
 private void RemoveServer_Click(object sender, EventArgs args)
 {
     serverList.RemoveIndex(SelectionCombo.SelectedIndex);
     PersistSavedServers();
     SelectionCombo.SelectedIndex = 0;
 }