I have a unit test that does an ExpectAndThrow so that I can unit test my exception handling.
When I execute the test by itself, it passes - the exception is thrown, and the enterprise library logging writes the error log to the database.
When I execute the test with all of my other unit tests (or just one other test, for that matter), the exception is thrown - but I get an ExceptionHandling exception (object reference not set to an instance of an object).
I do not understand why I am getting different behavior simply based on whether or not the test is executed by itself vs. with others.
Has anyone else encountered this issue?