 	
 }
 
-/*
-class DelegateListener implements IRunListener {
-	public var _onTestFailure:Function;
-	public var _onTestSuccess:Function;
-	public var _onRunCompleted:Function;
-	
-	public function onTestFailure(failure:ITestFailure):void {
-		if (_onTestFailure != null) _onTestFailure(failure);
-	}
-	
-	public function onTestSuccess(success:ITestSuccess):void {
-		if (_onTestSuccess != null) _onTestSuccess(success);
-	}
-	
-	public function onRunCompleted(result:IResult):void {
-		if (_onRunCompleted != null) _onRunCompleted(result);
-	}
-}
-*/

	
	private var handlerWasCalled:Boolean = false;
	
	[Test(async,timeout="10")]
	public function calling_delegate_synchronously_should_succeed():void {
		var delegate:Function = asunit4.async.addAsync(onComplete);
		delegate();


class AsyncMethodSuccessTest {
	
	[Test(timeout="100")]
	public function operation_delayed_but_fast_enough_will_succeed():void {
		var delegate:Function = asunit4.async.addAsync(onComplete);
		setTimeout(delegate, 0);
