<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com/group/rhinomocks</id>
  <title type="text">Rhino.Mocks Google Group</title>
  <subtitle type="text">
  A discussion list about Rhino Mocks - an advance mock objects framework for the .Net framework. http://www.ayende.com/projects/rhino-mocks.aspx
  </subtitle>
  <link href="/group/rhinomocks/feed/atom_v1_0_msgs.xml" rel="self" title="Rhino.Mocks feed"/>
  <updated>2010-01-05T21:49:55Z</updated>
  <generator uri="http://groups.google.com" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>bill richards</name>
  <email>bill.richa...@greyskin.co.uk</email>
  </author>
  <updated>2010-01-05T21:49:55Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/d3607d90003ea31c?show_docid=d3607d90003ea31c</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/d3607d90003ea31c?show_docid=d3607d90003ea31c"/>
  <title type="text">Re: Stubbing existing classes doesn&#39;t work like expected</title>
  <summary type="html" xml:space="preserve">
  Wigman, &lt;br&gt; from the tone of your response it seems that I have somehow offended &lt;br&gt; you. This was not my intention, I was merely attempting to highlight &lt;br&gt; the fact that had the code been develped in a TDD fashion you would &lt;br&gt; not have encountered this issue.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Tim Barcz</name>
  <email>timba...@gmail.com</email>
  </author>
  <updated>2010-01-05T12:28:55Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/a136261a903c20d4?show_docid=a136261a903c20d4</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/a136261a903c20d4?show_docid=a136261a903c20d4"/>
  <title type="text">Re: [RhinoMocks] Re: Stubbing existing classes doesn&#39;t work like expected</title>
  <summary type="html" xml:space="preserve">
  It&#39;s it not that the stub is causing your test to fail ... It is that &lt;br&gt; the stub can&#39;t quite do its job until some prerequisites are met...the &lt;br&gt; one here that you are running into is that stubbed methods need to be &lt;br&gt; virtual ( this is so that dynamic proxy can proxy the method ) &lt;br&gt; Tim
  </summary>
  </entry>
  <entry>
  <author>
  <name>Wigman</name>
  <email>wouter.wig...@gmail.com</email>
  </author>
  <updated>2010-01-05T07:39:37Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/37dee93ffe84ee2a?show_docid=37dee93ffe84ee2a</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/37dee93ffe84ee2a?show_docid=37dee93ffe84ee2a"/>
  <title type="text">Re: Stubbing existing classes doesn&#39;t work like expected</title>
  <summary type="html" xml:space="preserve">
  Well, excuse me, Bill. The Rhino documentation clearly states that &lt;br&gt; generating a stub will never fail a test. Well, it does! And there ARE &lt;br&gt; mock products that can actually create a thorough stub, stubbing all &lt;br&gt; methods of an existing class, virtual or not, so excuse me again for &lt;br&gt; my learning curve using Rhino. Saying test-driven developing means you
  </summary>
  </entry>
  <entry>
  <author>
  <name>Praburaj Thiagarajan</name>
  <email>prabu...@gmail.com</email>
  </author>
  <updated>2010-01-05T06:38:55Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/ee0a56210149eb5f/e13edfe2bbbbaf8a?show_docid=e13edfe2bbbbaf8a</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/ee0a56210149eb5f/e13edfe2bbbbaf8a?show_docid=e13edfe2bbbbaf8a"/>
  <title type="text">Re: [RhinoMocks] Deserialization error while using int[] as a parameter</title>
  <summary type="html" xml:space="preserve">
  Hi Tim, &lt;br&gt; I have a test case with the code: &lt;br&gt; My expectation setting for the call is like below. &lt;br&gt; Expect.On(MTInterface).Call(MT Interface.TestMethod(0, null, null, out &lt;br&gt; ResultDataset, out &lt;br&gt; ErrorMsg)).OutRef(ResultDatase t).Return(0).IgnoreArguments() .Constraints(Is.Equal(52), &lt;br&gt; Is.Anything(), Is.Anything(), Is.Anything(), Is.Anything());
  </summary>
  </entry>
  <entry>
  <author>
  <name>bill richards</name>
  <email>bill.richa...@greyskin.co.uk</email>
  </author>
  <updated>2010-01-04T22:06:42Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/cb624ae2a2a7e86d?show_docid=cb624ae2a2a7e86d</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/cb624ae2a2a7e86d?show_docid=cb624ae2a2a7e86d"/>
  <title type="text">Re: Stubbing existing classes doesn&#39;t work like expected</title>
  <summary type="html" xml:space="preserve">
  and just to add to these perfectly explanatory responses .... this i &lt;br&gt; the result of NOT developing your code in a test driven manner
  </summary>
  </entry>
  <entry>
  <author>
  <name>Tim Barcz</name>
  <email>timba...@gmail.com</email>
  </author>
  <updated>2010-01-04T20:48:53Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/e1f225d5c6775e82?show_docid=e1f225d5c6775e82</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/e1f225d5c6775e82?show_docid=e1f225d5c6775e82"/>
  <title type="text">Re: [RhinoMocks] Re: Stubbing existing classes doesn&#39;t work like expected</title>
  <summary type="html" xml:space="preserve">
  I&#39;ll be honest in that I don&#39;t run into this problem very often because I &lt;br&gt; almost always try to have an interface in there...and as Caio pointed out, &lt;br&gt; it&#39;s not a problem that shows up when programming interfaces. &lt;br&gt; Tim
  </summary>
  </entry>
  <entry>
  <author>
  <name>Caio Kinzel Filho</name>
  <email>cai...@gmail.com</email>
  </author>
  <updated>2010-01-04T19:53:48Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/60359eab6e483a13?show_docid=60359eab6e483a13</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/60359eab6e483a13?show_docid=60359eab6e483a13"/>
  <title type="text">Re: [RhinoMocks] Re: Stubbing existing classes doesn&#39;t work like expected</title>
  <summary type="html" xml:space="preserve">
  I think most of the time, when you are programming against interfaces &lt;br&gt; rather than against implementations, you will not have that problem, &lt;br&gt; once rhino.mocks can just implement that interface instead of &lt;br&gt; inheriting from your implementation
  </summary>
  </entry>
  <entry>
  <author>
  <name>Wigman</name>
  <email>wouter.wig...@gmail.com</email>
  </author>
  <updated>2010-01-04T19:49:39Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/787f411078fee463?show_docid=787f411078fee463</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/787f411078fee463?show_docid=787f411078fee463"/>
  <title type="text">Re: Stubbing existing classes doesn&#39;t work like expected</title>
  <summary type="html" xml:space="preserve">
  Ok, now I know, thanx a million! Too bad i have to adjust the &lt;br&gt; &#39;visibility&#39; of my methods just to get the testing part in order.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Tim Barcz</name>
  <email>timba...@gmail.com</email>
  </author>
  <updated>2010-01-04T16:24:37Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/ee0a56210149eb5f/8594f8433dce5d05?show_docid=8594f8433dce5d05</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/ee0a56210149eb5f/8594f8433dce5d05?show_docid=8594f8433dce5d05"/>
  <title type="text">Re: [RhinoMocks] Deserialization error while using int[] as a parameter</title>
  <summary type="html" xml:space="preserve">
  Can you provide a failing test that I (we) can run?
  </summary>
  </entry>
  <entry>
  <author>
  <name>Jonathon Rossi</name>
  <email>j...@jonorossi.com</email>
  </author>
  <updated>2010-01-04T15:02:46Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/88bafef25dae3a1c?show_docid=88bafef25dae3a1c</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/88bafef25dae3a1c?show_docid=88bafef25dae3a1c"/>
  <title type="text">Re: [RhinoMocks] Stubbing existing classes doesn&#39;t work like expected</title>
  <summary type="html" xml:space="preserve">
  The Test method is not virtual, so RhinoMocks cannot override it to do &lt;br&gt; nothing.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Wigman</name>
  <email>wouter.wig...@gmail.com</email>
  </author>
  <updated>2010-01-04T14:40:32Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/07e6b9ff6906439b?show_docid=07e6b9ff6906439b</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/3500378ecdd4795c/07e6b9ff6906439b?show_docid=07e6b9ff6906439b"/>
  <title type="text">Stubbing existing classes doesn&#39;t work like expected</title>
  <summary type="html" xml:space="preserve">
  When stubbing a class i expect the original class code is not &lt;br&gt; executed. However, the following example does throw an exception(&amp;quot;We &lt;br&gt; don&#39;t expect this to be thrown&amp;quot;). I thought stubs never failed a test. &lt;br&gt; What am I doing wrong here? How can i make Rhino stub the existing &lt;br&gt; class properly, so calling Test() does not give errors?
  </summary>
  </entry>
  <entry>
  <author>
  <name>Prabu</name>
  <email>prabu...@gmail.com</email>
  </author>
  <updated>2010-01-04T13:32:34Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/ee0a56210149eb5f/68b84a966eed16eb?show_docid=68b84a966eed16eb</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/ee0a56210149eb5f/68b84a966eed16eb?show_docid=68b84a966eed16eb"/>
  <title type="text">Deserialization error while using int[] as a parameter</title>
  <summary type="html" xml:space="preserve">
  Hi, &lt;br&gt; I am using Rhino mocks 3.5 for mocking our web service. I am using a &lt;br&gt; PartialMock and the mock works fine for other methods but fails for a &lt;br&gt; method which has int[] as an argument. On changing the argument to int &lt;br&gt; this works fine. &lt;br&gt; int TestMethod(int MethodIndex, IDValuePair[] MethodArguments, int[] &lt;br&gt; SecurityIds, out System.Data.DataSet ResultData, out string ErrorMsg);
  </summary>
  </entry>
  <entry>
  <author>
  <name>Tim Barcz</name>
  <email>timba...@gmail.com</email>
  </author>
  <updated>2009-12-28T19:42:36Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/1fd7081b74bcfad8/602d34722b7b537f?show_docid=602d34722b7b537f</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/1fd7081b74bcfad8/602d34722b7b537f?show_docid=602d34722b7b537f"/>
  <title type="text">Re: [RhinoMocks] Mock all instances of a class</title>
  <summary type="html" xml:space="preserve">
  &amp;quot;Do I need to mock the 3 objects?&amp;quot; Yes.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Weverton</name>
  <email>wever...@gmail.com</email>
  </author>
  <updated>2009-12-28T19:30:24Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/1fd7081b74bcfad8/da7409ce468afd04?show_docid=da7409ce468afd04</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/1fd7081b74bcfad8/da7409ce468afd04?show_docid=da7409ce468afd04"/>
  <title type="text">Mock all instances of a class</title>
  <summary type="html" xml:space="preserve">
  Hi, &lt;br&gt; I have a test with 3 domain object of same class and I need to mock &lt;br&gt; the same method, by same way in all these objects. Do I need to mock &lt;br&gt; the 3 objects? Is there a way to mock the class, and then, all object &lt;br&gt; will call the mocked method?? &lt;br&gt; Thanks, &lt;br&gt; Weverton
  </summary>
  </entry>
  <entry>
  <author>
  <name>Kam</name>
  <email>k.la...@gmail.com</email>
  </author>
  <updated>2009-12-22T22:54:09Z</updated>
  <id>http://groups.google.com/group/rhinomocks/browse_thread/thread/9a10d4d90a389fbc/9507893e644d4bc2?show_docid=9507893e644d4bc2</id>
  <link href="http://groups.google.com/group/rhinomocks/browse_thread/thread/9a10d4d90a389fbc/9507893e644d4bc2?show_docid=9507893e644d4bc2"/>
  <title type="text">Re: Difference between t.Stub and t.Expect</title>
  <summary type="html" xml:space="preserve">
  Sorry - i missed the end of you reply. Just read it through to the &lt;br&gt; end where you mentioned about the x.Expect.Return.Times(y). &lt;br&gt; I&#39;ve never tried that, but it seems more granular and specific than my &lt;br&gt; &#39;push my object through and hope the data is right when it comes out &lt;br&gt; the other end&#39; way. &lt;br&gt; Thanks for that!
  </summary>
  </entry>
</feed>
