[flexcoders] [Flexunit] - How to test throwing errors?

2007-01-17 Thread herrodius
Hi all, sorry for this slightly OT message. I was wondering what the best way is to test for a method throwing an error. I have an Account class that takes a number:int and a name:String as constructor params. If an Account is instantiated with a null name, I want to throw an Error

RE: [flexcoders] [Flexunit] - How to test throwing errors?

2007-01-17 Thread Stembert Olivier (BIL)
] On Behalf Of herrodius Sent: Wednesday, January 17, 2007 11:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] [Flexunit] - How to test throwing errors? Hi all, sorry for this slightly OT message. I was wondering what the best way is to test for a method throwing an error. I have