Porting of Should.js to ActionScript 3