﻿<?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>Ivaylo Bratoev commented on Rhino Mocks 3.5 Beta Released</title><description>Actually, I wrote that I cannot set up values on read only properties of a stub. I used this code:
  
  
var person = MockRepository.GenerateStub&lt;IPerson&gt;();
  
person.Stub(x =&gt; x.IsGeek).Return(true);
  
  
What confused me was that person.IsGeek property returns true only the first time. I have to add ...Repeat.Any() to make it work properly.
  
  
I think that for STUBS the default behavior should be ...Repeat.Any() not Repeat.Once(). What do you think of that?
  
I posted both issues on the mailing list.
</description><link>http://ayende.com/3319/rhino-mocks-3-5-beta-released#comment5</link><guid>http://ayende.com/3319/rhino-mocks-3-5-beta-released#comment5</guid><pubDate>Wed, 04 Jun 2008 19:18:50 GMT</pubDate></item><item><title>Ayende Rahien commented on Rhino Mocks 3.5 Beta Released</title><description>You can setup return values for stubs, yes.
  
Same way you use it elsewhere.
  
  
Rhino Mocks mailing list on google groups
</description><link>http://ayende.com/3319/rhino-mocks-3-5-beta-released#comment4</link><guid>http://ayende.com/3319/rhino-mocks-3-5-beta-released#comment4</guid><pubDate>Wed, 04 Jun 2008 16:14:54 GMT</pubDate></item><item><title>Ivaylo Bratoev commented on Rhino Mocks 3.5 Beta Released</title><description>Thanks for the fast response.
  
Do I guess properly that I cannot set up return values on readonly properties of a stub?
  
And, Ayende, what list do you refer to?
  
  
</description><link>http://ayende.com/3319/rhino-mocks-3-5-beta-released#comment3</link><guid>http://ayende.com/3319/rhino-mocks-3-5-beta-released#comment3</guid><pubDate>Wed, 04 Jun 2008 14:57:08 GMT</pubDate></item><item><title>Ayende Rahien commented on Rhino Mocks 3.5 Beta Released</title><description>Ivaylo,
  
Right now, I don't think you can.
  
Please post this to the list.
</description><link>http://ayende.com/3319/rhino-mocks-3-5-beta-released#comment2</link><guid>http://ayende.com/3319/rhino-mocks-3-5-beta-released#comment2</guid><pubDate>Wed, 04 Jun 2008 13:45:27 GMT</pubDate></item><item><title>Ivaylo Bratoev commented on Rhino Mocks 3.5 Beta Released</title><description>This syntaxis is really cool. The AAA model seems more natural than the record-replay. I have one issue with it - how assert that a method on a stub with 0 parameters was called only once?
</description><link>http://ayende.com/3319/rhino-mocks-3-5-beta-released#comment1</link><guid>http://ayende.com/3319/rhino-mocks-3-5-beta-released#comment1</guid><pubDate>Wed, 04 Jun 2008 13:42:07 GMT</pubDate></item></channel></rss>