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