Intro to Unit Testing 5: Invading Legacy Code in the Name of Testability

If, in the movie Braveheart, the Scots had been battling a nasty legacy code base instead of the English under Edward Longshanks, the conversation after the battle at Stirling between Wallace and minor Scottish noble MacClannough might have gone like this: Wallace: We have prevented new bugs in the code Continue reading

TDD For Breaking Problems Apart 3: Finishing Up

Last time, we left off with a bowling score calculator that handled basic score calculation with the exception of double strikes and the tenth frame. Here is the code as of right now for both classes: [TestClass] public class BowlingTest { [TestClass] public class Constructor { [TestMethod, Owner("ebd"), TestCategory("Proven"), TestCategory("Unit")] Continue reading