Douglas, One way to test for failure:
try { ... // code that should throw exception fail('Exception was not thrown'); } catch { // test exception type / message etc is what is expected } hth Angus On 31/05/07, Douglas McCarroll <[EMAIL PROTECTED]> wrote:
Hi All, I'd like to write FlexUnit tests that confirm that certain things cause my code to throw errors. assertError(), so to speak. I don't see any way to do this. Is there a way? Thanks in advance! Douglas ------------------------------------------------- Douglas McCarroll Flex Developer http://www.brightworks.com 617.459.3840 -------------------------------------------------