What type of code is suitable for unit testing?
Posted
by
RPK
on Programmers
See other posts from Programmers
or by RPK
Published on 2012-08-31T09:21:36Z
Indexed on
2012/08/31
9:50 UTC
Read the original article
Hit count: 388
unit-testing
|TDD
In Test Driven Development, what type of code is testable?
I am using a Micro-ORM (PetaPoco) and I have several methods that interact with the database like:
AddCustomer
UpdateRecord
etc.
I want to know how to write a test for these methods. I searched YouTube for videos on writing a test for DAL, but I didn't find any.
I want to know which method or class is testable and how to write a test before writing the code itself.
© Programmers or respective owner