public void TestCopyTo()
        {
            var list = new EmptyList <object>();
            var arr  = new object[1];

            list.CopyTo(arr, 0);
            Assert.AreEqual(null, arr[0]);
        }
        public void TestGetEnumerator()
        {
            var list = new EmptyList <object>();
            int i    = 0;

            foreach (object o in list)
            {
                ++i;
            }
            Assert.AreEqual(0, i);
        }
        public void TestIndexOf()
        {
            var list = new EmptyList <object>();

            Assert.AreEqual(-1, list.IndexOf(new object()));
        }
        public void TestContains()
        {
            var list = new EmptyList <object>();

            Assert.AreEqual(false, list.Contains(new object()));
        }
        public void TestIsReadOnly()
        {
            var list = new EmptyList <object>();

            Assert.AreEqual(true, list.IsReadOnly);
        }
        public void TestCount()
        {
            var list = new EmptyList <object>();

            Assert.AreEqual(0, list.Count);
        }
        public void TestClear()
        {
            IList <object> list = new EmptyList <object>();

            list.Clear();
        }
        public void TestRemoveAt()
        {
            IList <object> list = new EmptyList <object>();

            list.RemoveAt(0);
        }
        public void TestRemove()
        {
            IList <object> list = new EmptyList <object>();

            list.Remove(new object());
        }
Exemple #10
0
        public void TestInsert()
        {
            IList <object> list = new EmptyList <object>();

            list.Insert(0, new object());
        }
Exemple #11
0
        public void TestAdd()
        {
            IList <object> list = new EmptyList <object>();

            list.Add(new object());
        }
Exemple #12
0
 public void TestGet()
 {
     var    list = new EmptyList <object>();
     object ret  = list[0];
 }
Exemple #13
0
        public void TestSet()
        {
            var list = new EmptyList <object>();

            list[0] = new object();
        }