/* Parts of this code base is attributed to Kevin Farrow */

        public static void Main(string[] args)
        {
            //Creating Object Constructor called testone

            SinglyLinkedList testListOne = new SinglyLinkedList();

            //adding nodes inside of linked list
            testListOne.Add(1);
            testListOne.Add(2);
            testListOne.Add(3);
            testListOne.Add(4);
            testListOne.Add(5);

            //creating Object constructor called testtwo
            SinglyLinkedList testListTwo = new SinglyLinkedList();

            //adding nodes inside of linked list
            testListTwo.Add(6);
            testListTwo.Add(7);
            testListTwo.Add(8);
            testListTwo.Add(9);

            Console.WriteLine("Here is Singly Link List one");
            Console.WriteLine(testListOne.PrintToString());
            Console.WriteLine("Here is singly link list two");
            Console.WriteLine(testListTwo.PrintToString());

            Console.WriteLine("Merging of two lists");
            testListOne.MergeLists(testListTwo);
            Console.WriteLine(testListOne.PrintToString());
            Console.ReadLine();
            /* Parts of this code base is attributed to Kevin Farrow */
        }
        private static void Main()
        {
            var singlyLinkedList = new SinglyLinkedList();

            singlyLinkedList.Add(5);
            singlyLinkedList.Add(13);
            singlyLinkedList.Add(2);
            Console.WriteLine(singlyLinkedList.Contains(13));
            Console.WriteLine(singlyLinkedList.Contains(25));
            Console.WriteLine(singlyLinkedList.Remove(13));
            Console.WriteLine(singlyLinkedList.FindByIndex(1));
            Console.WriteLine(singlyLinkedList.Count);
            Console.WriteLine(singlyLinkedList[1]);
            singlyLinkedList[1] = 20;
            Console.WriteLine(singlyLinkedList[1]);
            Console.Read();
        }