Ayende @ Rahien

Hi!
My name is Oren Eini
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:

ayende@ayende.com

+972 52-548-6969

, @ Q c

Posts: 6,125 | Comments: 45,493

filter by tags archive

Planning Rhino Mock 3.5 - The Lambda Edition

time to read 1 min | 91 words

Note, this is a copy of the discussion that is taking place in the Rhino Mocks mailing list.

Now that I pushed all the current changes out, we need to start thinking about the next version. I am planning on seeing what kind of syntax I can get from the language using C# 3.0. As of yet, I don't have any concrete ideas about what should be done, so I am here to solicit ideas about what you want.

Syntax suggestions, patches, comments, etc are all welcome.


Comments

Jon Skeet

I guess the most obvious one is argument or return validation, taking a Func<T,bool>.

If you wanted to be able to log the constraint being violated (and you're in the .NET 3.5 world) you could take an Expression<Func<T,bool>>, compile it to actually run it, and log the ToString() form in case of a violation.

I'm sure there'll be more stuff though - next time I'm doing any reasonably complicated mocking I'll see what I can find :)

(Another option might be to use it to respond to methods, if you needed more behaviour than just returning a constant value.)

Krzysztof Koźmic

Contrats on 3.4 release.

I'd love to see easier support for event handlers. Something like what I described on my blog here: http://kozmic.pl/archive/2008/02/15/testing-callbacks-with-rhino.mocks.aspx

Judah

I agree with Krzysztof, better support for events would be great.

Comment preview

Comments have been closed on this topic.

FUTURE POSTS

  1. RavenDB 3.5 whirl wind tour: I'll have the 3+1 goodies to go, please - 2 days from now
  2. The design of RavenDB 4.0: Voron has a one track mind - 3 days from now
  3. RavenDB 3.5 whirl wind tour: Digging deep into the internals - 4 days from now
  4. The design of RavenDB 4.0: Separation of indexes and documents - 5 days from now
  5. RavenDB 3.5 whirl wind tour: Deeper insights to indexing - 6 days from now

And 10 more posts are pending...

There are posts all the way to May 30, 2016

RECENT SERIES

  1. The design of RavenDB 4.0 (14):
    05 May 2016 - Physically segregating collections
  2. RavenDB 3.5 whirl wind tour (14):
    04 May 2016 - I’ll find who is taking my I/O bandwidth and they SHALL pay
  3. Tasks for the new comer (2):
    15 Apr 2016 - Quartz.NET with RavenDB
  4. Code through the looking glass (5):
    18 Mar 2016 - And a linear search to rule them
  5. Find the bug (8):
    29 Feb 2016 - When you can't rely on your own identity
View all series

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats