Tag: Code Quality
Setting up Code Coverage in Team City
The project that I'm working on has a rather spotted history for unit tests until now. There would be periods of people actually writing them, but then come...
Code Review: Making a drop down list out of an enum
I’ve come across code like this a couple of times and it is rather odd: IEnumerable<CalendarViewEnum> _calendarViewEnums =...
Code Review: FirstOrDefault()
I regularly review the code that I maintain. Recently, I've come across code like this fairly often: someCollection.FirstOrDefault().Id I cannot rightly...
Why should you be returning an IEnumerable
I've seen in many places where a method returns a List<T> (or IList<T> ) when it appears that it may not actually really be required, or even desirable when...
Dealing with data rounding issues
If you have data coming in from a database, web service or other source external to your application and it contains, say for example, price information then...
Test Driven Development By Example
Introduction A lot has been written on the subject of test driven development, and especially on the idea that tests ought to be written first. This is an...
