In Visual Studio 2010, I have a number of unit tests. When I run multiple tests at one time using test lists, I sometimes reveive the following error for one or more of the
I added try/catch blocks to the descructor ~ClassName(){} that were defined in any class involved in my tests. This fixed the problem for me.
~MyClass() { try { // Some Code } catch (Exception e) { // Log the exception so it's not totally hidden // Console.WriteLine(e.ToString()); } }