コード例 #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));
 }
コード例 #3
0
 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));
 }