About the author

Steven Harmansteven harman :: makes sweet software with computers!

For recent posts and more about me, scroll to the bottom.

Sponsors

Subscribe

  • Subscribe to my feed. via RSS
  • Subscribe via email via email

contextspecification

There are 2 entries for the tag contextspecification

Toward a Better Use of Context/Specification

If you’ve hand-rolled your own Context/Specification apparatus to support your test spec-first lifestyle, you’ve likely got a base class that looks something like the following: 1: public abstract class concerns 2: { 3: [SetUp] 4: public virtual void setup_context() 5: { 6: context(); 7: } 8:...

Saving the World via… TDD?

Hot on the heels of my wildly (in)famous “When Should I Write Tests?” post, I have another fun tidbit about testing to share with you. Though, to be honest, I found this gem via my buddy Scott C Reynolds, so I can’t take all – actually, I can’t take any – of the credit. Anyhow, Scott posted a great little snippet of code that does a couple of things: Shows the gist of Context/Specification style specs in use. Ensures we won’t need John Connor’s help after all. ...