﻿<?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>Haacked commented on Stubbing Rhino Mocks</title><description>Very nice! Thanks Ayende. Now we can both wince less.
</description><link>http://ayende.com/2367/stubbing-rhino-mocks#comment5</link><guid>http://ayende.com/2367/stubbing-rhino-mocks#comment5</guid><pubDate>Sat, 05 May 2007 21:36:28 GMT</pubDate></item><item><title>Ayende Rahien commented on Stubbing Rhino Mocks</title><description>In that case, yes, you need to use SetupResult
</description><link>http://ayende.com/2367/stubbing-rhino-mocks#comment4</link><guid>http://ayende.com/2367/stubbing-rhino-mocks#comment4</guid><pubDate>Sat, 05 May 2007 20:21:04 GMT</pubDate></item><item><title>The Coding Hillbilly commented on Stubbing Rhino Mocks</title><description>What if IAnimal.Legs had only a getter and not a setter? Is this still doable with GenerateStub or do we need to do it the "old-fashioned" way and use an explicit MockRepository and SetupResult?
</description><link>http://ayende.com/2367/stubbing-rhino-mocks#comment3</link><guid>http://ayende.com/2367/stubbing-rhino-mocks#comment3</guid><pubDate>Sat, 05 May 2007 18:57:03 GMT</pubDate></item><item><title>Ayende Rahien commented on Stubbing Rhino Mocks</title><description>@Dan,
  
You are correct, it is there to show that it is working, not applicable for a real test.
</description><link>http://ayende.com/2367/stubbing-rhino-mocks#comment2</link><guid>http://ayende.com/2367/stubbing-rhino-mocks#comment2</guid><pubDate>Sat, 05 May 2007 12:39:23 GMT</pubDate></item><item><title>Dan commented on Stubbing Rhino Mocks</title><description>Is there any point in having the Assert.AreEqual(0, animalStub.Legs); line in there? Doesn't it just test that Rhino Mocks is functioning properly, and adds "noise" to what the method is actually supposed to be testing?
</description><link>http://ayende.com/2367/stubbing-rhino-mocks#comment1</link><guid>http://ayende.com/2367/stubbing-rhino-mocks#comment1</guid><pubDate>Sat, 05 May 2007 12:33:07 GMT</pubDate></item></channel></rss>