Exemple #1
0
        static void Main()
        {
            MyLogger myl      = new MyLogger();
            TestCode testCode = new TestCode(new SafeLog(myl.MyLog));

            testCode.DoTest();

            Thread.Sleep(60 * 1000);

            Console.WriteLine();
            if (testCode.gTestFailed)
            {
                Console.WriteLine("T e s t i n g   F A I L E D  !!!");
            }
            else
            {
                Console.WriteLine("T e s t i n g   O K");
            }
            Console.WriteLine();
            Console.WriteLine("Sleeping for 5 seconds ...");
            Thread.Sleep(5 * 1000);
        }
Exemple #2
0
 public MyLogger(TestCode own)
 {
     owner = own;
 }
Exemple #3
0
 public Form1()
 {
     testCode = new TestCode(new SafeLog(safeLog));
     InitializeComponent();
 }