fuzzelogic Solutions

December 3, 2009

Bdd Sugar

Filed under: BDD, OO, Programming, c#, design — Tags: — admin @ 6:44 pm

Hi all!

Just a short one for now, I’ll update this with a few more usage samples in the near future.
You can download the bdd framework I used in most of the presentations. Its a mix of things inspired from  a couple different sources (nSpec, jpboodhoo, dan north and couple others) . It really is syntax sugar over whats already available - nUnit and rhino mocks.

In the download, I’ve included a test from the nUnit samples on MoneyBag using nUnit natively, and the same thing done using sugar. There’s also a sample on setting the expectations for the mocked objects.

From a Test first approach, BDD does provide a more fluent transition into thinking about the design of your objects, and how they collaborate with each other.

Hope this helps! (incase you missed it : you can download it from here )
Zak

Powered by WordPress