private static void run_test( Tests test_obj, string name, bool use_ssl) { System.Console.WriteLine(name + ", ssl:" + (use_ssl ? "yes" : "no")); MethodInfo method = typeof(Tests).GetMethod(name); object[] args = new object[1]; args[0] = use_ssl; method.Invoke( test_obj, args); }
static void Main(string[] args) { string[] test_functions = { "TestConvertByURI", "TestConvertFile", "TestConvertHtml", "TestTokens", "TestStreams", "TestMore" }; Tests t = new Tests(args); for(int i=0; i<test_functions.Length; i++) { run_test(t, test_functions[i], false); if (t.client.HOST == "pdfcrowd.com") run_test(t, test_functions[i], true); } }
public static void ExecuteLinkedListTests() { Tests.CustomLinkedListTest(); }
public static void ExecuteBinaryTreeTest(int numOfRandsToAddToTree) { Tests.BinaryTreeTest(numOfRandsToAddToTree); }