예제 #1
0
 public void ToStringTest3()
 {
     string expected = "qwertyuiop";
     SystemLinkedListString SLLString = new SystemLinkedListString(expected);
     string actual = SLLString.ToString();
     Assert.AreEqual(expected, actual);
 }
예제 #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();
 }
예제 #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");
        }
예제 #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();
        }