             else {
                 throw new IllegalOperationError("Invalid argument count");
             }
-
-            assertEquals(message, null, actual);
+			
+			if(actual != null) {
+				throw new AssertionFailedError(format(message, null, actual));
+			}
         }
         /**
          * Asserts that two objects refer to the same object. If they are not

                }
            }

            failNotEquals(message, expected, actual);
        }
        /**
         * Asserts that an object isn't null. If it is

            }
        }

        static private function failNotEquals(message:String, expected:Object, actual:Object):void {
            fail(format(message, expected, actual));
        }
