I'm using Visual Studio 2005 Team Edition for Software Developers. I'm using their unit testing framework along side of typemock for mocking.
When I use AlwaysThrow() or ExpectAndThrow() to throw an exception, it doesn't throw the exception type that I'm throwing, like ApplicationException. It instead throws a TypeMockException.
I'm telling VS to expect an exception so that the test doesn't fail, uisng [ExpectedException(ApplicationException)] above the test method signature. If I stick in TypeMockException instead of ApplicationException the test passes. But if I do that, then the test will pass if any TypeMockException is thrown regardless of whether it is valid or not. Am I doing something wrong here?