Exemplo n.º 1
0
 public void ToStringTest3()
 {
     string expected = "qwertyuiop";
     SystemLinkedListString SLLString = new SystemLinkedListString(expected);
     string actual = SLLString.ToString();
     Assert.AreEqual(expected, actual);
 }
Exemplo n.º 2
0
 public static void RunSLList()
 {
     Console.WriteLine("--------------3---------------");
     SystemLinkedListString SLLString = new SystemLinkedListString(inputString);
     SLLString.ToString();
     SLLString.Insert("789!", 5);
     SLLString.Remove(2, 3);
     SLLString.Length();
 }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            SystemString sys = new SystemString("String");

            sys.Insert(6, "insert");
            sys.Remove(2, 3);

            LinkedList <char>      charList = new LinkedList <char>();
            SystemLinkedListString SLL      = new SystemLinkedListString(charList);

            charList.AddFirst('A');
            charList.AddLast('L');
            SLL.Insert(2, "P");
            SLL.Insert(3, "H");
            SLL.Insert(4, "A");
        }
Exemplo n.º 4
0
        public static void RunLList()
        {
            Console.WriteLine("--------------Sorted List---------------");
            string first = "Hey";
            string second = "This is different";
            string third = "This value = this.";
            SystemString SString = new SystemString(first);
            SystemArrayString SAString = new SystemArrayString(second);
            SystemLinkedListString SLLString = new SystemLinkedListString(third);

            SortedListClass slc = new SortedListClass();
            slc.AddToList(SString);
            slc.AddToList(SAString);
            slc.AddToList(SLLString);
            slc.Print();
        }