Browse by Tags

All Tags » Mocking (RSS)

Using Lambdas for return values in Rhino.Mocks

In a recent StackOverflow question, someone showed some sample code they’d like to be able to use.  The particular syntax they used isn’t supported by Rhino.Mocks , but it was an interesting idea that I thought could be easily implemented with an...
Posted by PSteele | 1 comment(s)
Filed under: , ,

Rhino.Mocks, Lambdas and Expectations

An interesting post on the Rhino.Mocks users list that I thought I’d share. Background Let’s start with a simple interface for an item: public interface IItem { void DoFoo(); void DoBar(); } Now let’s say we have a custom collection of these IItem objects...
Posted by PSteele | 1 comment(s)
Filed under: , ,

Verbosity Isn’t Always a Bad Thing

There was a message posted to the Rhino.Mocks forums yesterday about verifying a single parameter of a method that accepted 5 parameters.  The code looked like this:   [TestMethod] public void ShouldCallTheAvanceServiceWithTheAValidGuid() {...
Posted by PSteele | 1 comment(s)
Filed under: , ,

Talks Submitted for Ann Arbor Day of .NET 2010

Just submitted my session abstracts for Ann Arbor's Day of .NET 2010 .   Getting up to speed with .NET 3.5 -- Just in time for 4.0! Yes, C# 4.0 is just around the corner.  But if you haven't had the chance to use C# 3.5 extensively, this session...

Looking Forward to 2010

Yes, the first month of 2010 is almost gone and I'm just now getting around blogging about the past year and the year ahead.  I guess time management should be on my to-do list for this year? The CodeMash Website One of the coolest projects I've...

Use Dependency Injection To Simplify Application Settings

We've all seen and written code that accesses data from our app.config or web.config file.  We'll throw some simple settings in there: <? xml version ="1.0" encoding ="utf-8" ? > < configuration > < appSettings...
Posted by PSteele | 8 comment(s)
Filed under: , ,
More Posts