开发者

Tutorial for Unit Testing with VS 2010 [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜