Forum member
Steve44
2 posts
Posts by Steve44
-
How To Throw Custom Exception
I agree the problem is not related to NCrunch itself. I think we are using NInject to set the dependencies, and NSubstitute to mock them, and I've never been trained in any of this. I hoped someone understood what is happening. In other tests we are doing identity setup with the substitute di…
12 Jul 2016 13:32 UTC
-
How To Throw Custom Exception
I'm new to NCrunch, but I have coded a few tests that have worked. Now I'm trying to test a catch clause for a custom exception that I created. Below is the try/catch and below that is the test code. When it calls the Dispatch method it encounters a null reference exception, but I can't determine…
11 Jul 2016 20:55 UTC