Archives
-
Rhino.Mocks, Lambdas and Expectations
An interesting post on the Rhino.Mocks users list that I thought I’d share.
-
Building Paths Fluently
If you ever need to “build” a path (i.e. “C:\folder1\subfolder”), you really should be using Path.Combine. It makes sure the trailing directory separator is in between the two paths (and it puts the appropriate character in – DirectorySeparatorChar). I wanted an easier way to build a path than having to constantly call Path.Combine so I created a handy little extension method that lets me build paths “fluently”: