As for documentation, I'm not sure how to access older stuff. Also, I checked the DLL you linked to and you are correct -- it says it's for 2.0, but it has a reference to System.Core from .NET 3.5. Not sure if that was simply a mistake, or if there's something else that requires 3.5 in that build
However, even if your application is targeting 2.0, you could still use 3.5 for you unit tests (where you use mocking) . I did this at a client since it took them months (and months...) to deploy 3.5 out to all the machines. But I used 3.5 for my unit testing assemblies. Would something like that work for you? --- Patrick Steele http://weblogs.asp.net/psteele On Thu, Feb 17, 2011 at 7:54 AM, Gary <[email protected]> wrote: > Patrick Steele wrote: >> On Thu, Feb 17, 2011 at 3:06 AM, Gary wrote: >>> So how can I do this using rhino? All I want to do is specify that >> when >>> O.m is called the second time (for example), it should expect certain >>> values (1 and 2, say), and return 'foo'. >> >> This should do it. This example is easy with constants (1 and 2) > > haha! Yeah, well actually the values are other variables I create. > >> but >> there are argument constraints that you can use to get pretty fancy on >> what your mocked/stubbed calls to accept: >> >> // arrange >> var s = MockRepository.GenerateMock<O>(); >> s.Expect(x => x.m(1,2)).Return(foo); > > Thanks... but also... hrrrmph. > > I knew there was something I forgot to say. I am forced to use an older > version (which doesn't appear to support GenerateMock) than the current > one because I need .NET 2.0 support, and the latest version that claims > to support that (3.5 - > http://www.ayende.com/20/section.aspx/download/228) causes problems in > builds because Visual Studio claims the .NET versions of Rhino and my > target assembly are different (they might be, but only after the 2.0 as > far as I can see!), so I am using Rhino 3.0.1.526. > > That was another question, actually - is there any way to see the > documentation for a particular version? > > -- > You received this message because you are subscribed to the Google Groups > "Rhino.Mocks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rhinomocks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
