public void WrongIndexOfTest()
        {
            var list = new ListOnGenerics <int>();

            list.Add(32);
            list.Add(8);
            Assert.AreEqual(-1, list.IndexOf(0));
        }
        public void SizeForTwoTest()
        {
            var list = new ListOnGenerics <int>();

            list.Add(32);
            list.Add(0);
            Assert.AreEqual(2, list.Count);
        }
        public void RemoveNonexistenentElementTest()
        {
            var list = new ListOnGenerics <char>();

            list.Add('e');
            list.Add('q');
            Assert.AreEqual(false, list.Remove('f'));
        }
        public void ContainsFalseTest()
        {
            var list = new ListOnGenerics <string>();

            list.Add("e");
            list.Add("q");
            Assert.AreEqual(false, list.Contains("r"));
        }
        public void AddTest()
        {
            var list = new ListOnGenerics <int>();

            list.Add(32);
            list.Add(15);
            Assert.AreEqual(32, list[0]);
            Assert.AreEqual(15, list[1]);
        }
        public void IndexOfForTwoTest()
        {
            var list = new ListOnGenerics <int>();

            list.Add(32);
            list.Add(8);
            Assert.AreEqual(0, list.IndexOf(32));
            Assert.AreEqual(1, list.IndexOf(8));
        }
        public void IndexAccessForTwoTest()
        {
            var list = new ListOnGenerics <int>();

            list.Add(32);
            list.Add(8);
            Assert.AreEqual(32, list[0]);
            Assert.AreEqual(8, list[1]);
        }
        public void RemoveTest()
        {
            var list = new ListOnGenerics <char>();

            list.Add('e');
            list.Add('q');
            list.Remove('e');
            Assert.AreEqual(false, list.Contains('e'));
        }
        public void ClearTest()
        {
            var list = new ListOnGenerics <string>();

            list.Add("e");
            list.Add("q");
            list.Clear();
            Assert.AreEqual(0, list.Count);
        }
        public void IndexAccessExceptionTest()
        {
            var list = new ListOnGenerics <int>();

            list.Add(32);
            var temp = list[2];
        }
        public void ForEachTest()
        {
            var list = new ListOnGenerics <char>();

            list.Add('e');
            list.Add('a');
            list.Add('r');
            var answer = "ear";
            var i      = 0;

            foreach (var element in list)
            {
                Assert.AreEqual(answer[i], element);
                ++i;
            }
        }
        public void CopyToTest()
        {
            var list = new ListOnGenerics <string>();

            list.Add("e");
            list.Add("q");
            var copied = new string[2];

            list.CopyTo(copied, 0);
            var check = new string[] { "e", "q" };

            for (int i = 0; i < 2; ++i)
            {
                Assert.AreEqual(check[i], list[i]);
            }
        }
        public void RemoveAtForOneElementTest()
        {
            var list = new ListOnGenerics <int>();

            list.Add(32);
            list.RemoveAt(0);
            Assert.AreEqual(0, list.Count);
        }