             _remoteTimeout = DEFAULT_REMOTE_TIMEOUT;
             _ioErrorExpected = false;
             _securityErrorExpected = false;
+        }
+        
+        public function get remoteDuration():int {
+            return _remoteDuration;
+        }
+
+        public function remoteDurationIsValid():Boolean {
+            return _remoteDuration != INVALID_TIME;
+        }
+        
+        // see testRemoteDuration() below
+        public function set remoteTimeout(ms:int):void {
+            _remoteTimeout = ms;
+        }
+
+        public function set ioErrorExpected(yn:Boolean):void {
+            _ioErrorExpected = yn;
+        }
+        
+        public function set securityErrorExpected(yn:Boolean):void {
+            _securityErrorExpected = yn;
         }
 
         // use this method in overriding run() if you are using a URLLoader:

        protected static const DEFAULT_REMOTE_TIMEOUT:int = 30000;
        private static const INVALID_TIME:int = -1;
        
        private var _remoteStartTime:int;
        
        private var _remoteDuration:int;
        public function get remoteDuration():int
        {
            return _remoteDuration;
        }
        public function remoteDurationIsValid():Boolean
        {
            return _remoteDuration != INVALID_TIME;
        }
        
        private var _remoteTimeout:int;
        // see testRemoteDuration() below
        public function set remoteTimeout(ms:int):void
        {
            _remoteTimeout = ms;
        }

        private var _ioErrorExpected:Boolean;
        public function set ioErrorExpected(yn:Boolean):void
        {
            _ioErrorExpected = yn;
        }
        
        private var _securityErrorExpected:Boolean;
        public function set securityErrorExpected(yn:Boolean):void
        {
            _securityErrorExpected = yn;
        }
        
        public function AsynchronousTestCase(testMethod:String = null) {
            super(testMethod);

package asunit.framework {
    
    import asunit.errors.AbstractError;
    
    import flash.errors.IllegalOperationError;
