Recently a co-worker of mine (Lou, smart guy… (Lou, your shameless plug)) needed to test a UI control that raised an event upon certain conditions. In order to handle this event he needed to have some way to trap that it was raised. The solution he came up with was simple and elegant.., use an anonymous...
I am looking for feedback from the group. I am pretty new to using mocks for my unit tests and I am not sure what the standard approach in the community for usage of mocks in regards to how/where they are stored in your test application. After refactoring some of my tests to use mocks I quickly noticed...
Ok, so maybe I am the last person on the planet to learn about this new attribute, but oh well. Last week a co-worker of mine came across this attribute when doing some research and both of us just kinda looked at each other and smiled. See, for a long while now we have been saying how it would be nice...
One of the things I often hear when I am preaching the gospel of writing Unit Test's is that I have so much existing code, I don’t know where to start. In order to help others that have this dilemma I thought I would put together a simple multi-step plan to help you become one of the converted. The key...