November 2006 - Posts
I enjoy learning new things; for that matter I find it rewarding if I can learn something new every day, regardless of how trivial or well-known it is. Yesterday, I was trying to share some files with people over in Redmond: I updating the sharing permissions
Read More...
James Carr has an amusing and enlightening post on TDD Anti-Patterns . They encompass all the key points I've written about and add a few more as well. I'm not completely sure if I understand what he means by 'The Secret Catcher', because it's perfectly
Read More...
I might be wrong, but it seems that most people still think of Microsoft Dublin as the place where products get localized and that mainly Irish people work here. Neither statement is wrong, but (a) we do an ever-increasing amount of development and (b)
Read More...
For some reason on the drive home yesterday, I realised there were a few more important points about unit tests (examples) worth mentioning. They should be fast . I'm talking Civic-Hatchback -with-a- Type-R-sticker -on-the-bumper fast. They should be
Read More...
Like most things, it takes time to become proficient in using examples to design your code. Early on, one of the areas I forgot to cover in my fixtures was validating enum values. My tester would have a great time writing test cases like this: BadClass
Read More...
Some recent conversations I've had lead me to believe that not everyone is on the same page when it comes to unit tests, so I thought I'd go back to basics. Follow the three As principle: Arrange, Act, and Assert. Anyone should be able to glance at a
Read More...
Well, since all the cool kids are doing it ... Shame, you can't see that Trinidad & Tobago or Singapore are highlighted.
Read More...
"This is great! VSTS will automatically generate unit tests for my class." ... "I wrote one unit test for each public interface of my class. Do I need any more?" ... "Oops! I forgot to write a unit test before I checked my code in" ... Eric Gunnerson
Read More...