-
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...
-
I am 99% sure I have had a post like this in the past, but my google-foo was weak today and I could not find it. Do not let anyone blow smoke up your back side, testing is expensive, testing takes time but most importantly testing can help improve the quality of your code. If you are going to spend...
-
Joel , in his inimitable way, posted the flame bait of all flame bait posts yesterday , explaining the role of the Duct Tape Programmer. To my surprise, the Twitterverse started to reverberate with commentary, but weirdly, almost all of it was very negative about the post, many claiming that Joel was...
-
If you find yourself using reflection in your unit test to push 'stub’ data into it your test just may smell. Now there are times (especially when dealing with legacy code) that you need use reflection to crack open a class to push/pull values but I would strongly suggest you consider the solutions...
-
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...
-
In my last post ( here ) I was giving a wrap up of the Mocking session I recently did at TriNug . In that post I gave some of the reasons (sorry, I meant excuses) people gave for not doing any type of automated testing during their dally development ritual (notice I am staying away from TDD at this point...
-
I'm giving a talk on TDD at our local UG tonight, and under the influence of some recent posts here on devlicio.us, I just finished reworking my presentation. This post is an outline for the first half of my presentation. The Problems Code has entropy. That is over time it deteriorates. At least...
-
One of the new features that is part of the next release of StructureMap 2.5 is a AutoMocking Container. What is an AutoMocking Container, well per Jacob over at Eleutian an AutoMocker is AutoMockingContainer is simply a IoCContainer with a custom facility and dependency resolver that supplies a Mock...
-
I finally got around to downloading and playing with the forthcoming release of Rhino Mocks v3.5 (more info here from Ayende). The major changes to this version is that the syntax has been revamped to allow for the new language features in .Net 3.5. Another big change with this release is that...
-
Ian Cooper brought up an interesting point on the altdotnet mailing list recently, around the language used to describe Mocks, or more accurately his preference for the term Test Double over my use of the generic term Mock. In most areas of development I can often be considered a language perfectionist...
-
I made a comment yesterday on the altdotnet Yahoo group to the effect of: Test Driven Development is All About Design, Tests Are a Useful By-Product I worded it slightly differently then, but I think this sums it up better. And coincidentally, Oren just blogged a very similar sentiment . Whatever you...
-
As it sort of came up via a previous post, and on the altdotnet mailing list ... I thought I would share a little secret with you ... abstracting out legacy systems can be pretty darn simple with a bit of Reflector magic! Step One: Get Reflector You can download it here if you don't already have...
-
A while back Roy Osherove posted an offer to the altdotnet mailing list on behalf of TypeMock : Reminder: TypeMock has offered a free Typemock Isolator ent. license for one year for anyone who has registered to the current ALT.NET site.  Also, if you're an MVP you can get the same license...
-
Over the past few weeks I have worked on a few products for my client that will be used as API's. These API's will be used by either their own (external) clients or other internal departments. Working on these projects made me think about testing in a little different light compared...
-
***** Update ***** This issue is directly related to a #R 4 EAP issue. I was using build 755 and this was an issue. As of build 762, this is no longer an issue. ******************** Today I encountered some odd behavior when trying to run some tests against my configuration object. I am hoping that someone...