Beispiel #1
0
        public void TestListImplicitImplementation()
        {
            IList <int> list = new List1 <int>();

            Assert.AreEqual(0, list[0]);
            Assert.True(list.Contains(0));
            Assert.AreEqual(100, list.Count);
            Assert.False(list.IsReadOnly);
            Assert.Null(list.GetEnumerator());
            Assert.AreEqual(200, list.IndexOf(0));
            Assert.True(list.Remove(0));

            var a = new int[] { 1, 2 };

            list.CopyTo(a, 0);
            Assert.AreEqual(0, a[0]);
        }