Search code examples
c#.netunit-testingextension-methodsrhino-mocks

Which version of Rhino Mocks gets the most benefit from C#3.0 or later versions of C#?


I want to know which version of Rhino Mocks gets the most benefit of C# 3.0 features like lambda expressions, extension methods etc.

I believe to make use of those features of C# would ease the writing of the unit tests especially for arrange-act-assert pattern.


Solution

  • AAA syntax was introduced since 3.5 release:

    Rhino Mocks 3.5 Beta Released

    The biggest new feature is the new AAA syntax, which you can read about in the relevant post, but we had a few other new things as well. Note that this release if for .Net 3.5 only. Rhino Mocks 3.5 RTM will be for .Net 2.0 and 3.5, but I am focusing on the capabilities that I can get from the 3.5 platform at the moment

    Useful links: