Professional Documents
Culture Documents
Theory Unit Testing
Theory Unit Testing
Theory Unit Testing
Presented by
Priyaa Nachimuthu
priyaa@syr.edu
Agenda
Types of Testing
Unit Testing
Using NUnit
Refactoring
.TEST - $900.Writes many unit tests for the user. Uses rules-based engine to
ensure code correctness and allows the user to write custom tests.
( www.parasoft.com/jsp/products/home.jsp?product=TestNet )
Using NUnit for Unit Testing
A simple test
Testing an exception
- Remove duplication
TDD – Plan of Action
Quickly add a test
Refactoring patterns
Ensure that the code passes unit tests and integration tests
before check-ins
Check the tests and any other setup files into SCC
Refactor code only when there are thorough set of tests for the
code
Thank you!