Exemplo n.º 1
0
        public void ContainsTest(int[] array, int val, bool ex)
        {
            bool actual = false;

            LinkedListProject.LinkedList lList = new LinkedListProject.LinkedList();
            if (array.Length == 0)
            {
                actual = false;
            }
            else
            {
                lList.AddLast(array);
                actual = lList.Contains(val);
                Assert.AreEqual(ex, actual);
            }
        }