Rhino Mocks v3.4 Released - .NET Developer Tool / Dynamic Mock Object Framework

Rhino Mocks v3.4 Released - .NET Developer Tool / Dynamic Mock Object Framework

News Feed: David Hayden, Florida C# Developer, Filed: .NET Tools

 

Rhino MocksOren released version 3.4 of Rhino Mocks the other day with the following enhancements per his blog post:

  • Added CreateMockWithRemoting and DynamicMockWithRemoting to work around BCL bug when overriding a generic method with generic constraint.
    This is useful when you want to force Rhino Mocks to use Remoting proxies (usually it just guess and you don't deal with this). That is needed because at certain cases ( generic methods with generic constraints ) there is a bug in Reflection Emit that generate invalid code.
  • Mike Nichols  has added List.ContainsAll() constraint
  • Shawn Neal added the DoNotExpect syntax, which is clearer the Expect.Call().Repeat.Never(), it is certainly shorter.
  • Added trace writer with stack trace, should make it easier to track down strange mocking behavior. Now you can just enable logging and see all the method calls that are being made.
  • Guido van Loon supplied the Property.AllPropertiesMatch constraints
  • Making sure that recorders that wrap recorders will be merged if they contain only one element. Again, this is something that you are not supposed to understand unless you went deep into the code. Suffice to say that the behavior is easier to understand now.

I am not a mock framework guru, having only used Rhino Mocks, but it has become an indispensible part of my daily development.

If you are looking for a mock framework, Rhino Mocks is free and enhanced on a regular basis. Download it here.

 

Recent .NET Developer Tools Mentioned

 

Site: http://www.davidhayden.com/

 

posted on Saturday, February 23, 2008 9:07 PM

My Links

Post Categories

Article Categories

Archives

Loose-Leaf Tea