Re: [flexcoders] FlexUnit asserError()?

2007-05-31 Thread Douglas McCarroll
Just posted on my blog about this: http://www.brightworks.com/flex_ability/?p=39 Thanks again, Angus. Douglas McCarroll wrote: Thanks, Angus! Angus Johnson wrote: Douglas, One way to test for failure: try { ... // code that should throw exception fail('Exception was not

[flexcoders] FlexUnit asserError()?

2007-05-30 Thread Douglas McCarroll
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

Re: [flexcoders] FlexUnit asserError()?

2007-05-30 Thread Angus Johnson
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

Re: [flexcoders] FlexUnit asserError()?

2007-05-30 Thread Douglas McCarroll
Thanks, Angus! Angus Johnson wrote: 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*