Provide a nice default mocking library for unit testing
I think there is a need to have a mocking library inside .Net Framework which which quicken us to do a unit testing. As TDD growing, I think it will be handy if there is a default mocking framework comes by default from VS
I already showed Fakes on a couple of developer conferences (including the Visual Studio Evolution in Oct. 2012). However, it is only available in Ultimate and Premium (since Update 2). It needs to be included in all SKUs and it also need to be fixed in regards to the known refactoring issues:
"If you refactor your code under test, the unit tests you have written using Shims and Stubs from previously generated Fakes assemblies will no longer compile."
Source: Ebook "Better Unit Testing with Microsoft Fakes", page 37
Joshua Weber - msft commented
Have you investigated the Microsoft Fakes framework? Especially the ability to create stubs for unit testing. Fakes addresses many of the same goals and scenarios that many of the open-source frameworks provide.
Yes, it is nicer if comes out the box default one.
So easier for new developer to choose and have a standard version and reliable supported by MS.
David Kean commented
Any reason why something like Moq isn't good enough? Is it because it doesn't come in the box?
I know there is MS Test, But what may be good if that comes with mocking tool as well.
Such as nSubsitute, NMock and hopefully MS will have the default one.
Joe White commented
.NET already comes with a default testing framework, and it's lousy compared to the open-source alternatives.