Example #1
0
        static void Main(string[] args)
        {
            Console.Write("\n  Demonstrate loading and executing tests");
            Console.Write("\n =========================================");

            // using string path = "../../../Tests/TestDriver.dll" from command line;

            if (args.Count() == 0)
            {
                Console.Write("\n  Please enter path to libraries on command line\n\n");
                return;
            }
            string path = args[0];

            TestHarness th = new TestHarness();

            if (th.LoadTests(path))
            {
                th.run();
            }
            else
            {
                Console.Write("\n  couldn't load tests");
            }

            Console.Write("\n\n");
        }