コード例 #1
0
 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);
 }
コード例 #2
0
        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);
              }
        }
コード例 #3
0
 public static void ExecuteLinkedListTests()
 {
     Tests.CustomLinkedListTest();
 }
コード例 #4
0
 public static void ExecuteBinaryTreeTest(int numOfRandsToAddToTree)
 {
     Tests.BinaryTreeTest(numOfRandsToAddToTree);
 }