I am working on an MVC project and was wondering whether to use Basic Unit Test or Unit Test, I read articles / explanations about both but can’t see much difference between the two. What are the main differences and which one is preferable for a large scale app with DB backend?
Share
The difference between Visual Studio’s
Basic Unit Testitem template andUnit Testitem template is that the latter includes support forClassInitialize,ClassCleanup,TestInitializeandTestCleanuproutines allowing you to execute some code before/after the test fixture and some code before/after each unit test. If you don’t need such functionality in your unit test you could go wit the basic template which generates the following file:Of course you could always add the corresponding routines to a basic unit test if you want to support later this functionality.