G
Giulio Petrucci
Hi there,
I need to test that an exception is properly caught and re-thrown in an
anonymous callback enqueued in a ThreadPool. I designed my test suite in
order to do this:
- create a class with a method which executes the code to raise an
exception, and make it MarshalByRefObject, say 'Foo'..
- in my test suite code create a new AppDomain and call
CreateInstanceAndUnwrap to create a new Foo instance.
- call the method which raises an exception and...
....and now I don't know what to do.
Is there a way to check that in the separated AppDomain the exception
has been properly thrown?
Or am I totally wrong?
Thanks in advance,
Giulio
--
I need to test that an exception is properly caught and re-thrown in an
anonymous callback enqueued in a ThreadPool. I designed my test suite in
order to do this:
- create a class with a method which executes the code to raise an
exception, and make it MarshalByRefObject, say 'Foo'..
- in my test suite code create a new AppDomain and call
CreateInstanceAndUnwrap to create a new Foo instance.
- call the method which raises an exception and...
....and now I don't know what to do.
Is there a way to check that in the separated AppDomain the exception
has been properly thrown?
Or am I totally wrong?
Thanks in advance,
Giulio
--