Forum member

mpetter

4 posts

Posts by mpetter

  1. NCrunch not detecting covered code when using TestCaseSource in NUnit

    I work in Agile software development myself, so I get it. I only wanted to make sure it gets onto your backlog... priority is at your discretion, of course! :)

  2. NCrunch not detecting covered code when using TestCaseSource in NUnit

    Thanks for the quick response! Knowing the root cause will definitely help in writing tests that will not again cause this issue. However, I think it's important to note that if you view this behavior as by design (even with a warning), you are creating an important (and probably undesirable) di…

  3. NCrunch not detecting covered code when using TestCaseSource in NUnit

    Found more detail. It apparently has to do with when a complex object is used in the enumerable as a TestCaseSource vs. using a primitive object. Not sure why this is, but I managed to create a reduced example that clearly demonstrates the issue happening. http://petterisbetter.com/michael/medi…

  4. NCrunch not detecting covered code when using TestCaseSource in NUnit

    I am using NCrunch 1.41 in Visual Studio 2012, and I am having an issue with NCrunch's code coverage metrics. This is only happening when specifying a TestCaseSource in NUnit. I am using a TestCaseSource that points to a method that returns an IEnumerable of arguments for a single-argument test …