Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Tested antest = new Tested();

            if (antest.myWackyFunction())
            {
                Console.Write("This is a test");
            }
            else
            {
                Console.Write("This is a test");
            }
        }
Ejemplo n.º 2
0
 public bool test()
 {
     TestHarness.Tested tested = new TestHarness.Tested();
     return(tested.myWackyFunction());
 }
Ejemplo n.º 3
0
        // test stub
#if (TEST_TESTED)
        static void Main(string[] args)
        {
            Tested t = new Tested();

            t.performAnyTest();
        }
Ejemplo n.º 4
0
 public bool test() // test function deriving from ITest interface
 {
     Console.Write("\n REQ 5 - test driver derives from an ITest interface that declares a method test()");
     TestHarness.Tested tested = new TestHarness.Tested();
     return(tested.performAnyTest()); // calling the function to perform a test as defined by the user
 }