Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 436
Samvel Siradeghyan Avatar asked Aug 19 '10 14:08

Samvel Siradeghyan


3 Answers

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

like image 153
Stephane Avatar answered Oct 07 '22 14:10

Stephane


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.

like image 43
Alex Peck Avatar answered Oct 07 '22 13:10

Alex Peck


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

like image 37
Nobody Avatar answered Oct 07 '22 15:10

Nobody