Saturday, January 17, 2009

Fluent Test Data Builders Using Generic Extension Methods and Lambda Expressions

Whilst writing some extension methods this evening to make creating objects in unit tests simpler I found myself writing methods that looked sufficiently similar to each other that I felt the code lacked a little DRYness. The code being written has to output a data extract in a fixed field length formatted text file. As such the length of the formatted fields is very important, so I had created

No comments:

Post a Comment