Recently I got back into writing html/javascript code as part of my day job and boy-o-boy have things changed since the last time i did any of this. One thing that has not changed for me however was my belief in unit testing, so it was very painful for me to be writing hundreds of lines of javascript...
Today I was trying to wrap some code in some tests (I got lazy and did not create the tests first… shot me). What I was trying to ensure was that my event handlers I passed into a method were actually being wired up for usage. Now I searched around the net for a while to see if there was...
Part of my job at work is to teach and mentor other developers on our team. Right now I am in the process of teaching two of our developers how to create unit tests (notice I did NOT say integration tests because most anyone can do those). We are also learning how to create our tests by utilizing an...
When following TDD, using mocking tools like RhinoMocks ( here ) or NMock ( here ) is a critical part of the process. By utilizing mocking tools you can better isolate your tests to only test the code that you have direct control over. This can prove to be critical component to building out your test...