Cover with dotCover fails test that succeeds in Debug

I've run into an unusual problem that I haven't seem to be able to make any headway against. In one of my unit tests, I have a statement Assert.AreEqual(<property 1>, <property 2>). I have confirmed through debugging that these two values are equivalent. When I simply Run or Debug, this test succeeds. However, when I check for code coverage, the test fails. I'm using dotCover 2.5.559.25 (I previously used the latest released version, but upgraded in hopes it might resolve the issue). I've tried replacing my Assert statement with Assert.IsTrue(<expression that evaluates to true>), but I haven't had any luck. If anyone has encountered this problem and has recommendations for how to resolve it, I would appreciate your input.


Please sign in to leave a comment.