Exemple #1
0
 private static int Main(string[] args)
 {
     DoSomething doSomething = new DoSomething();
     Test(doSomething);
     if (doSomething.output == "0 0,0 1,1 0,1 1,")
     {
         Console.WriteLine("PASS");
         return 100;
     }
     Console.WriteLine("Expected :{0} but found :{1}", "0 0,0 1,1 0,1 1,", doSomething.output);
     return 101;
 }
Exemple #2
0
        private static int Main(string[] args)
        {
            DoSomething doSomething = new DoSomething();

            Test(doSomething);
            if (doSomething.output == "0 0,0 1,1 0,1 1,")
            {
                Console.WriteLine("PASS");
                return(100);
            }
            Console.WriteLine("Expected :{0} but found :{1}", "0 0,0 1,1 0,1 1,", doSomething.output);
            return(101);
        }
Exemple #3
0
        private static void Main(string[] args)
        {
            //TakesAwhileDel dl = TakesAwhile;
            //dl.BeginInvoke(1, 6000, AsyncCallbackImpl, dl);
            //System.Threading.Thread.Sleep(1000);

            Console.WriteLine("Main-Start【ThreadId=" + Thread.CurrentThread.ManagedThreadId + "】:" + DateTime.Now);
            DoSomething doSomething = CommonDelegate.CommonDelegate.DoSomethingMethod;

            doSomething.BeginInvoke(null, null);
            Console.WriteLine("Main-End【ThreadId=" + Thread.CurrentThread.ManagedThreadId + "】:" + DateTime.Now);
            Console.ReadLine();
        }