コード例 #1
0
        static void Main(string[] args)
        {
            AnotherTested antest = new AnotherTested();

            if (antest.myWackyFunction())
            {
                Console.Write("This is a test");
            }
            else
            {
                Console.Write("This is a test");
            }
        }
コード例 #2
0
 public bool test()
 {
     TestHarness.AnotherTested tested = new TestHarness.AnotherTested();
     return(tested.myWackyFunction());
 }
コード例 #3
0
 static void Main(string[] args)
 {
     AnotherTested at = new AnotherTested();
     at.performAnyTest();
 }
コード例 #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.AnotherTested tested = new TestHarness.AnotherTested();
     return(tested.performAnyTest());  // calling the function to perform a test as defined by the user
 }