Working further with the Fluent Test Data Builder I was working on yesterday has led me to refactor what I had, and the result is, I think, even nicer! I've added a new method SetValue, and changed the from getting the Member.Name to getting the PropertyInfo from the Member. The other significant change is that I'm now wrapping the SetLength and SetValue methods in try catch blocks so that I can
Showing posts with label Lambda. Show all posts
Showing posts with label Lambda. Show all posts
Monday, January 19, 2009
Refactored: Fluent Test Data Builders Using Generic Extension Methods and Lambda Expressions
Posted on 2:52 PM by Unknown
Saturday, January 17, 2009
Fluent Test Data Builders Using Generic Extension Methods and Lambda Expressions
Posted on 6:33 PM by Unknown
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
Thursday, June 19, 2008
Resharper 4.0 and Lambda Expressions
Posted on 4:52 AM by Unknown
Now I'm fairly new to the wonderful world of Resharper, so barely a day goes by where I don't discover something new about it, or through it. But today I found a feature that just made me want to share about it straight away. Let me set the scene. I'm coding a Lambda expression for use as a predicate and when finished I notice the now familiar little light bulb. Hmmm I thought, now what could
Subscribe to:
Posts (Atom)