예제 #1
0
        public void AddTest()
        {
            ClassAdapter adapter      = new ClassAdapter();
            string       expectedItem = "expected item";

            adapter.Add(expectedItem);
            Assert.Equal(expectedItem, adapter.Get(0));
        }
예제 #2
0
        public void RemoveTest()
        {
            ClassAdapter adapter      = new ClassAdapter();
            string       expectedItem = "expected item";

            adapter.Add(expectedItem);
            adapter.Remove(expectedItem);
            Assert.Throws <ArgumentOutOfRangeException>(() => adapter.Get(0));
        }