Mocking Without the Refactor and Without the Wrapper
When they begin mocking, the majority of.NET test suites encounter the same three obstacles. Ceremony is the first; your test consists of 40% wrapper types. The second is silence: the test succeeds for a reason unrelated to the behavior it purports to examine, the fake answers a call that no one intended it to receive,…