Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Steve Sanderson has a great writeup on TDD best practices.</p> <p><a href="http://feeds.codeville.net/~r/SteveCodeville/~3/DWmOM3O0M2s/" rel="nofollow noreferrer">http://feeds.codeville.net/~r/SteveCodeville/~3/DWmOM3O0M2s/</a></p> <p>Also, there's a great set of tutorials for doing an ASP.net mvc project that discusses a lot TDD principles (if you don't mind learning ASP.net MVC along the way) <a href="http://www.asp.net/learn/mvc-videos/" rel="nofollow noreferrer">http://www.asp.net/learn/mvc-videos/</a> Look for the "Storefront" series at the bottom of the page.</p> <p><a href="http://code.google.com/p/moq/" rel="nofollow noreferrer">MOQ</a> seems to be the hot mocking framework lately, you may want to look into that as well</p> <p>In summary, try to write a test to validate something you'r trying to archive, then implement the code to make it work.</p> <p>The pattern is known as Red - Green - Refactor. Also do your best to minimize dependencies so that your tests can focus on one component.</p> <p>Personally, I use Visual Studio Unit Tests. I'm not a hardcore TDD developer, but what i like to do is this:</p> <ol> <li>Create a new project and define a few of the fundamental classes based on the system design (that way I can at least get some intellisense)</li> <li>create a unit tests project and start writing unit tests to satisfy the functionality i'm trying to implement.</li> <li>Make them fail</li> <li>Make them pass (implement)</li> <li>Refactor</li> <li>Repeat, try to make the test more stringent or create more tests until i feel its solid.</li> </ol> <p>I also feel its very useful to add functionality onto an exiting code base. If you want to add some new feature, first create the unit test for what you want to add, step through the code to see what you have to change, then go through the TDD process.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload