﻿<?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>Shane Courtrille commented on Rhino Mocks: Void methods using Expect.Call</title><description>Shouldn't the example code actually say...
  
  
IServer mockServer = mocks.CreateMock&lt;IServer&gt;();
  
  
Expect.Call(delegate { mockServer.Start(); }).Throw(new InvalidConigurationException());
  
// rest of the test
  
  
Because the current example creates a mock of IMock without showing any relation between it and IServer.
  
  
</description><link>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment10</link><guid>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment10</guid><pubDate>Wed, 07 Nov 2007 17:16:05 GMT</pubDate></item><item><title>Ayende Rahien commented on Rhino Mocks: Void methods using Expect.Call</title><description>Ulu,
  
That is unfortunately the compiler fault.
  
You would get this feature in VB9, though.
</description><link>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment9</link><guid>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment9</guid><pubDate>Fri, 26 Oct 2007 18:40:54 GMT</pubDate></item><item><title>ulu commented on Rhino Mocks: Void methods using Expect.Call</title><description>I guess we VB programmers are out of luck again..
</description><link>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment8</link><guid>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment8</guid><pubDate>Fri, 26 Oct 2007 18:23:08 GMT</pubDate></item><item><title>Christopher Bennage commented on Rhino Mocks: Void methods using Expect.Call</title><description>w00t!
</description><link>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment7</link><guid>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment7</guid><pubDate>Mon, 22 Oct 2007 17:45:45 GMT</pubDate></item><item><title>Dave Newman commented on Rhino Mocks: Void methods using Expect.Call</title><description>Sweet!
  
  
Man I can't wait to get in to c# 3.  Of course until resharper supports it it's pretty much a no go.
</description><link>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment6</link><guid>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment6</guid><pubDate>Wed, 17 Oct 2007 05:25:48 GMT</pubDate></item><item><title>Luke Breuer commented on Rhino Mocks: Void methods using Expect.Call</title><description>If you're talking about C# 3.0:
  
Expect.Call(() =&gt; mockServer.Start()).Throw(new InvalidConigurationException());
</description><link>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment5</link><guid>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment5</guid><pubDate>Wed, 17 Oct 2007 02:38:55 GMT</pubDate></item><item><title>jdn commented on Rhino Mocks: Void methods using Expect.Call</title><description>I was just dealing with this again today, this is great.
</description><link>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment4</link><guid>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment4</guid><pubDate>Wed, 17 Oct 2007 02:14:41 GMT</pubDate></item><item><title>Robert Ream commented on Rhino Mocks: Void methods using Expect.Call</title><description>Perfect, I was just thinking the same thing last night too, after writing that 1 millionth mocked void method call expectation this project...
</description><link>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment3</link><guid>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment3</guid><pubDate>Wed, 17 Oct 2007 01:16:12 GMT</pubDate></item><item><title>Sean Chambers commented on Rhino Mocks: Void methods using Expect.Call</title><description>Excellent! I often dislike having to use the LastCall syntax as well. This makes all of my expectations look the same. I like it!
</description><link>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment2</link><guid>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment2</guid><pubDate>Wed, 17 Oct 2007 00:18:35 GMT</pubDate></item><item><title>Jason Meridth commented on Rhino Mocks: Void methods using Expect.Call</title><description>It's scary how my colleague and I were just talking about this today.
  
  
Thanks for the post.  It will be very beneficial.
</description><link>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment1</link><guid>http://ayende.com/2882/rhino-mocks-void-methods-using-expect-call#comment1</guid><pubDate>Tue, 16 Oct 2007 23:41:44 GMT</pubDate></item></channel></rss>