Visual studio generate test
3 answers
Microsoft tried something like this a while ago, I suppose, and received widespread criticism for not understanding what Test-Driven Development / Design was about.
Pex may be part of what you are looking for. This helps to test the device, not replace it.
There are also IoC Container frameworks (and fake and isolation frameworks, I think) that support auto-mocking , which might help as well.
As Vadim pointed out, templates and snippets can take care of a large template of code.
I didn't use Pex or auto mocking; I just do what Vadim does.
+1
source to share