예제 #1
0
 public void Test(string stringToSearchIn)
 {
     MethodTester <string> .TestAllMethods(stringToSearchIn, "sorted string",
                                           new Func <string, bool, string>(BubbleSort),
                                           new Func <string, bool, string>(CharArraySort),
                                           new Func <string, bool, string>(GnomeSort));
 }
예제 #2
0
 public void Test(string stringToSearchIn)
 {
     MethodTester <string> .TestAllMethods(stringToSearchIn, "upper case letters",
                                           new Func <string, string>(StringBuilderRemove),
                                           new Func <string, string>(StringBuilderAdd),
                                           new Func <string, string>(UpperCaseNoDuplicate));
 }
 public void Test(string stringToSearchIn)
 {
     MethodTester <char> .TestAllMethods(stringToSearchIn, "first non repeating character",
                                         new Func <string, char>(TwoPointersSearch),
                                         new Func <string, char>(DictionarySearch),
                                         new Func <string, char>(CountEachCharacterSearch));
 }
예제 #4
0
 public void Test(string stringToSearchIn)
 {
     MethodTester <string> .TestAllMethods(stringToSearchIn, "formatted string",
                                           new Func <string, string>(Ladder));
 }