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)); }
private static void /*[a]*/ CallBack/*[/a]*/ (IAsyncResult ar) { Console.WriteLine("Callback"); AsyncTestObject o = (AsyncTestObject)ar.AsyncState; o.EndTest(ar); }
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)); }
public void CallbackTest() { AsyncTestObject o = TypeAccessor <AsyncTestObject> .CreateInstance(); o.BeginTest(2, null, /*[a]*/ CallBack /*[/a]*/, /*[a]*/ o /*[/a]*/); }