public void RemoveTest() { ClassAdapter adapter = new ClassAdapter(); string expectedItem = "expected item"; adapter.Add(expectedItem); adapter.Remove(expectedItem); Assert.Throws <ArgumentOutOfRangeException>(() => adapter.Get(0)); }