Exemple #1
0
        public void AnyNameTest()
        {
            AsyncTestObject o = TypeAccessor <AsyncTestObject> .CreateInstance();

            IAsyncResult ar = o./*[a]*/ AnyName/*[/a]*/ (2, null, null, null);

            Assert.AreEqual(2, o./*[a]*/ AnyName/*[/a]*/ (ar));
        }
Exemple #2
0
        private static void /*[a]*/ CallBack/*[/a]*/ (IAsyncResult ar)
        {
            Console.WriteLine("Callback");

            AsyncTestObject o = (AsyncTestObject)ar.AsyncState;

            o.EndTest(ar);
        }
Exemple #3
0
        public void AsyncTest()
        {
            AsyncTestObject o = /*[a]*/ TypeAccessor /*[/a]*/ <AsyncTestObject> .CreateInstance();

            IAsyncResult ar = o./*[a]*/ BeginTest/*[/a]*/ (1, "10");

            Assert.AreEqual(1, o./*[a]*/ EndTest/*[/a]*/ (ar));
        }
Exemple #4
0
        public void CallbackTest()
        {
            AsyncTestObject o = TypeAccessor <AsyncTestObject> .CreateInstance();

            o.BeginTest(2, null, /*[a]*/ CallBack /*[/a]*/, /*[a]*/ o /*[/a]*/);
        }