Example #1
0
        static void Main(string[] args)
        {
            CodeToTest2 ctt = new CodeToTest2();

            ctt.add(5, 5);
            Console.Write("\n\n");
        }
Example #2
0
        private CodeToTest2 code;  // will be compiled into separate DLL

        //----< Testdriver constructor >---------------------------------

        /*
         *  For production code the test driver may need the tested code
         *  to provide a creational function.
         */
        public TestDriver2()
        {
            code = new CodeToTest2();
        }