Browse by Tags
All Tags »
Agile »
Development (
RSS)
How do I test a method that returns void? For example a method like this. public void Process(int leadId) { decimal price = _calculator.CalculateNormalLead(leadId); Lead lead = new Lead(leadId, price); _leadRepository.Save(lead); } How to test what the...
Renames a non-private method or property in the class in a manner that does not break code in other assemblies which is dependent upon the old name. Do I need say more? Perhaps a picture that says more than a thousand words... I wanted to rename my WriteDocumentElements...
Now this is a great initiative! Billy McCafferty is doing a weekly contest where he uploads a Visual Studio 2005 solution of a C# project with a specific code smell . You must refactor the solution so that the code smell is removed and so it still passes...
Well, it seems Alex took things seriously and is slapping his bit-stick around. Thinks he can just slap me around and walk away with a smile, huh? Well, I'm not done with round 1 Alex. Round 1 Reflector integration Thank you for the point, Alex. +1 Dennis...
Some time ago I had a discussion with my colleague Alex Thissen about the differences between Visual Studio 2005 (unit) testing, and NUnit and TestDriven.NET. I'm very pro NUnit, but Alex says he can do everything I do with VS2005. I disagreed and we...
While writing his upcoming book The Art of Agile Development , James Shore is posting a lot of chapters on his website to be reviewed by visitors. He just posted a great chapter on how he thinks Continuous Integration should take place. He mentions the...
A while ago I gave a presentation, called “An introduction into the TDD Mantra”. The occasion was a technical meeting with some colleagues, to whom I wanted to introduce at least the principles behind Test-Driven Development. A lot of people...
During MIND , a colleague asked the audience if they were developing sexy shit. Bob Koss says it more politically correct, and calls it refrigerator code . While doing a TDD class, he explains the rules of Simple Design . A student called it refrigerator...
When reading the latest posts about XP == DATT by Paul Gielens, I noticed him mentioning UML as Sketch . And suddenly this new Visio 12 feature was in my mind, that I had just recently blogged about . As Fowler says it, you can draw your sketches on a...
Before Test Driven Development (TDD) most developers just randomly clicked through a small part of the application they had just created, before turning it over to the tester. If there even was a tester. Probably everyone knows the number of bugs that...
Today I was browsing a site about Java. Don't get me wrong, I'm not switching, but I found something interesting there. And the fact that the url was www.java .net made me go look. ;-) We've all seen code that smells. Code that smells like refactoring...
A few days ago I've watched a webcast by Brian Button on refactoring. For the most part, he introduces refactoring to the viewer and gives some good examples of why you should refactor and how it's done. He uses Resharper and the examples really make...
A lot of times you hear or read about not touching your database when (technically) unit testing your application. Some reasons were given, but I never really understood why. At most projects, a lot of what we do is shifting around information (data)...