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
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
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
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*
4 matches
Mail list logo