Пример #1
0
 public void ToStringTest2()
 {
     string expected = "qwertyuiop";
     SystemArrayString SAString = new SystemArrayString(expected);
     string actual = SAString.ToString();
     Assert.AreEqual(expected, actual);
 }
Пример #2
0
 public static void RunSAString()
 {
     Console.WriteLine("--------------2---------------");
     SystemArrayString SAString = new SystemArrayString(inputString);
     SAString.ToString();
     SAString.Insert("456!", 9);
     SAString.Remove(4, 4);
     Console.WriteLine(SAString.Length());
 }
Пример #3
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();
        }