﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Judah commented on Planning Rhino Mock 3.5 - The Lambda Edition</title><description>I agree with Krzysztof, better support for events would be great.
</description><link>http://ayende.com/3154/planning-rhino-mock-3-5-the-lambda-edition#comment3</link><guid>http://ayende.com/3154/planning-rhino-mock-3-5-the-lambda-edition#comment3</guid><pubDate>Wed, 20 Feb 2008 15:01:37 GMT</pubDate></item><item><title>Krzysztof Koźmic commented on Planning Rhino Mock 3.5 - The Lambda Edition</title><description>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
</description><link>http://ayende.com/3154/planning-rhino-mock-3-5-the-lambda-edition#comment2</link><guid>http://ayende.com/3154/planning-rhino-mock-3-5-the-lambda-edition#comment2</guid><pubDate>Mon, 18 Feb 2008 13:02:11 GMT</pubDate></item><item><title>Jon Skeet commented on Planning Rhino Mock 3.5 - The Lambda Edition</title><description>I guess the most obvious one is argument or return validation, taking a Func&lt;T,bool&gt;.
  
  
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&lt;Func&lt;T,bool&gt;&gt;, 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.)
  
</description><link>http://ayende.com/3154/planning-rhino-mock-3-5-the-lambda-edition#comment1</link><guid>http://ayende.com/3154/planning-rhino-mock-3-5-the-lambda-edition#comment1</guid><pubDate>Mon, 18 Feb 2008 11:36:55 GMT</pubDate></item></channel></rss>