Why is there no assertError() function in FlexUnit?

Posted by lorennorman on Stack Overflow See other posts from Stack Overflow or by lorennorman
Published on 2009-03-03T16:32:58Z Indexed on 2010/05/10 8:44 UTC
Read the original article Hit count: 363

It seems that most XUnit testing frameworks provide assertions for the times when you want to assert that a given operation will thrown an exception (or an Error in AS3 parlance.) Is there some "standard" way of doing this that I am overlooking, which would explain the absence of an assertError() assertion included with FlexUnit?

I know HOW to implement such a thing, and I will probably add it to my FlexUnit (go open source!), but it seems like such a glaring omission that I'm left wondering if I'm just doing it wrong.

Anyone have thoughts on this?

© Stack Overflow or respective owner

Related posts about flexunit

Related posts about assertions