You don’t want to do it like that
James Carr has compiled a useful list of TDD Anti Patterns. Worth reading. And if you want to read more about unit testing, may I recommend Michael Feather’s book, Working Effectively with Legacy Code? This is a great book that describes refactoring techniques you can apply to apply unit testing to existing, untested code – the sort of code that often feels untestable. After reading this book I felt that in addition to being able to tackle legacy code, I had a much more instinctive feel for how to design code to be testable. James’ post helps to keep the tests you’re writing clean.