Using Moq, RhinoMocks or a similar framework, is there a way to configure a mock to implement both get and set on all properties of an object even if the interface does not?
I\'m writing unit tests for a method that uses an object I am holding as a session variable accessed by a service I called \"SessionService\". The full method is as follows:
Lets say there is an Interface ICreateFileStrategy. Lets say there are classes A and B that implement these two interfaces. Both these classes implement method
Unexpected behaviour from RhinoMocks: var mocks = new MockRepository(); var connection = mocks.Stub<OracleConnection>();
I am trying to mock IDataReader with RhinoMocks, but I am having a hard time making it iterate through the DataRows. Here is what I have done so far:
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
can someone share the link to download the latest version of Rhino mocks binaries (binaries only, I don\'t need source)? the link http://ayende.com/projects/rhino-mocks/downloads.aspx, doesn\'t seem t
I have a problem with raising an event on 开发者_运维知识库a mocked object. I am using Rhino Mocks 3.4. I have studied similar questions, but failed to reproduce any of the suggested solutions.
I want to raise an event on a stub object whenever a certain property is set using Rhino Mocks. E.g. public interface IFoo
I have a method like the following: public void ExecuteSomeCommand() { new MyCommand( someInt, SomeEnum.EnumValue ).Execute();