I had the same problem, the tests failed for apparently no reason. Later I found that a buggy method was causing a StackOverflowException
. When I fixed my bug, the VS bug disappeared.
Maybe it works most of the time because you don’t run the faulty code.