Author Archives: Duncan Butler

Unknown's avatar

About Duncan Butler

Trying to be a very agile software developer, working in C# with Specflow, Nunit and Machine Specifications, and in the evening having fun with Ruby and Rails

A little bit of Gherkin

I have been using Spec Flow for the last few months as my feature specification framework, but sometimes the output I want to assert can be very repetitive, a simple example of this the string calculator kata. Each part of … Continue reading

Posted in Uncategorized | Leave a comment

The Problem with Tests

Ok so that got your attention, from someone who has spent the last few years jumping up and down about unit testing, now he has problems with it! Actually no, its not the tests, it’s the what.   Going back over … Continue reading

Posted in Uncategorized | Leave a comment

Code Retreat Bletchley Park March 2010

you could not find a better setting for a code retreat than Bletchley Park, the home of one of the worlds first computers and the code breakers of world war 2, or a better guide for the day than Corey … Continue reading

Posted in Code Retreat | Leave a comment

Quick Quote

“Quality is never an accident;  It is always the result of high intelligent direction and skilful execution;  It represents the wise choice of many alternatives”   found by corey haines in a muffler shop!

Posted in Uncategorized | Leave a comment

Don’t Make It, Fake it

The gentle art of deception Writing code kata’s is fine, you end with a small class, that has no dependencies connects to nothing, doesn’t need a network, service or database! So what do you do when you are trying to … Continue reading

Posted in Programming | Leave a comment

TDD Like you mean it! Part 3

The second test and first refactoring. Having completed the first test, it is time to start the second test.  The Second Test The add function takes a single number and returns that number. This test can be written completely as … Continue reading

Posted in Programming | Leave a comment

TDD Like you mean it Part 2

Some Actual Real Tests! For these examples I will be using the Calculator Kata designed by Roy Osherove, starting with a solution containing two empty projects, the production project “CalculatorDomain” and the test project “CalculatorDomain.Tests”.   The first test The … Continue reading

Posted in Programming | Leave a comment

Test Driven Development

Testing like it or not is now mainstream, just about every version of visual studio 2010 has the ability to run native Microsoft unit tests, and there is a plethora of unit testing frameworks out there to choice from for … Continue reading

Posted in Uncategorized | Leave a comment

Installing VS2010 Beta 2

I have just installed visual studio 2010 beta 2, on my windows 7 laptop, it went fairly well, this was a dvd install and not the web version that is available, which might be different. My only problem has been … Continue reading

Posted in Computers and Internet | Leave a comment

My First Ever Screencast

Well I have at last put my code where my mouth is 😉 and uploaded a screencast, this is of me carrying out a simple code kata, something I have been doing in private for a few months now, I … Continue reading

Posted in Uncategorized | Leave a comment