             if(Math.abs(expected - actual) <= tolerance) {
                    return;
             }
-            failNotEquals(message, expected, actual);
+            throw new AssertionFailedError(format(message, expected, actual));
         }
 
         /**

         */
        static public function assertNotNull(...args:Array):void {
            var message:String;
            var object:Object;

            if(args.length == 1) {
                message = "";
                object = args[0];
            }
            else if(args.length == 2) {
                message = args[0];
                object = args[1];
            }
            else {
                throw new IllegalOperationError("Invalid argument count");
            }

            assertTrue(message, object != null);
        }
        /**
         * Asserts that an object is null.  If it is not

        static public function assertThrows(errorType:Class, block:Function):void {
            try {
                block.call();
                throw new AssertionFailedError("assertThrows block did not throw an expected exception");
            }
            catch(e:Error) {
                if(!(e is errorType)) {
                    throw new AssertionFailedError("assertThrows did not throw the expected error type, instead threw: " + getQualifiedClassName(e));
                }
            }
        }
