This project is read-only.

UnitTests fail in VS2010: Info for others.

Jun 18, 2010 at 7:32 AM

Hi All,

After importing the library into VS2010 I was unable to successfully run the unit tests because of a deliberate change introduced by MS in the handling of exceptions raised by methods invoked by reflection. Effectively the tests for expected exceptions don't work because the Debugger intercepts them before the unit test can deal with them.

The issue is discussed here and has some wider implications.

Just thought it might help others scratching their head when they get errors during the unit tests in VS2010 like:

"Must pass a parameter of type System.String with this message. Registered action(s) expect it."

Cheers,

Scott