Forum member
bodie
7 posts
Posts by bodie
-
NCrunch with Moles
rlarno, you nailed it. The dependencies I'm trying to sever are between public methods and the private methods they call. We will probably end up solving the problem in two ways: 1) If the private method is being called by more than one consumer (within the class that contains it), refactor it …
06 Oct 2011 20:46 UTC
-
NCrunch with Moles
How does dependency injection solve the problem? If I have a complex method that contains logic I don't plan to reuse and don't plan to expose, I may extract it into a private method. How do I test that logic without going through the public interface? Then when I want to test the public method, …
06 Oct 2011 15:59 UTC
-
NCrunch with Moles
I realize that there is a hot debate over whether or not to test private methods, but let's just assume, for the moment, that we're going to test them. I am using Microsoft's PrivateObject class to provide access to the private methods for testing. I am using Moles (from Microsoft Research) to…
05 Oct 2011 21:01 UTC
-
References from early adopters?
I am recommending to my Director that we make NCrunch a part of our toolkit. He asked if there are any adopters we could talk to before making that decision. I know the product is free at the moment, so it may seem unnecessary, but I've been asked to find out.
16 Sep 2011 14:35 UTC
-
Tests in a separate solution
Unfortunately, the code is in a protected enclave that has not access to the outside world, so I can't send anything from my dev box unless it can be persisted and transferred on physical media to my other network. Can I save the output you are after? The good news is that, after creating the so…
13 Sep 2011 21:08 UTC
-
Tests in a separate solution
We use MSTest and we run the tests inside of VS2010. However, there is a lot of "build, switch solutions, run" going on. I thought along the same lines as your suggestion and created a custom solution that included a project and the tests project that covers it. I got wierd results. When I selec…
13 Sep 2011 20:12 UTC
-
Tests in a separate solution
I work on a very large application (2+ million lines). The unit test projects are kept in a separate solution that does not also include the projects with the code under test. Is there a way to configure NCrunch to run in this environment?
13 Sep 2011 18:31 UTC