Forum member

bodie

7 posts

Posts by bodie

  1. 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 …

  2. 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, …

  3. 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…

  4. 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.

  5. 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…

  6. 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…

  7. 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?