Tutorial for Unit Testing with VS 2010 [closed]
I am new in unit testing and need some book 开发者_开发问答or tutorial. I have looked alot in google, but can't find anything. I saw this question, but there is no answer, that's why I am asking it too.
Is there anything from which I can start? Thanks.The art of Unit testing
by Roy Osherove
I didn't understand the concept of unit testing until I read this great book!
It guides you step by step from simple tests to tests that are maintainable, readable and trustworthy. It covers advanced subjects like mocks, stubs and frameworks such as TypeMock and Rhine.
HTH
If you are new to unit testing, in addition to learning the tools, I would recommend learning a bit about how to write testable code. E.g. using dependency injection and abstraction as a test seam.
This video goes over the basics: http://www.youtube.com/watch?v=wEhu57pih5w. It is more at the conceptual level than being a tutorial, but nevertheless is well worth watching.
The NUnit website has a good easy tutorial in the documentation for each release. More of a quick start guide than an in-depth book on testing.
Heres a link: http://www.nunit.org/index.php?p=getStarted&r=2.5.7
精彩评论