there may be a reasonable explanation, but anyway I needed it, so here it is in case someone searches for that
here is my TestCaseWithNotEquals.as :
package
{
import flexunit.framework.TestCase;
public class TestCaseWithNotEquals extends TestCase
{
public function TestCaseWithNotEquals(methodName:String=null)
{
super(methodName);
}
public static function assertNotEquals(...rest):void
{
if ( rest.length == 3 ){
failEquals( rest[0], rest[1], rest[2] );
}else{
failEquals( "", rest[0], rest[1] );
}
}
private static function failEquals( message:String, expected:Object, actual:Object ):void
{
if ( expected == actual )
{
if ( message.length > 0 ) message = message + " - ";
throw new AssertionFailedError( message + "not expected:<" + expected + "> and was:<" + actual + ">" );
}
}
}
}
