public void ToStringTest1()
 {
     string expected = "qwertyuiop";
     SystemString SString = new SystemString(expected);
     string actual = SString.ToString();
     Assert.AreEqual(expected, actual);
 }
Esempio n. 2
0
 public static void RunSString()
 {
     Console.WriteLine("--------------1---------------");
     SystemString SString = new SystemString(inputString);
     SString.ToString();
     SString.Insert("123!", 3);
     SString.Remove(2, 3);
     SString.Length();
 }
Esempio 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");
        }
Esempio 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();
        }