예제 #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);
        }
예제 #2
0
파일: TestCode.cs 프로젝트: SimonK91/ops
 public MyLogger(TestCode own)
 {
     owner = own;
 }
예제 #3
0
 public Form1()
 {
     testCode = new TestCode(new SafeLog(safeLog));
     InitializeComponent();
 }