rhino-mocks
mock object that implements gets and sets not defined in interface
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?[详细]
2023-03-10 14:12 分类:问答Mocked object accessed an unknown number of times by Linq To Sql statement
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:[详细]
2023-03-10 10:27 分类:问答Mocking classes in Rhino Mocks
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[详细]
2023-03-09 17:16 分类:问答RhinoMocks Unexpected Dispose()
Unexpected behaviour from RhinoMocks: var mocks = new MockRepository(); var connection = mocks.Stub<OracleConnection>();[详细]
2023-03-08 05:39 分类:问答Can't get RhinoMock to iterate throug a DataReader
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:[详细]
2023-03-08 04:13 分类:问答External libraries in C# project on github [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-03-07 07:03 分类:问答download link for latest Rhino mocks binaries (googling didn't help)
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[详细]
2023-03-06 16:09 分类:问答Raising an event from a mocked object using Rhino
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.[详细]
2023-03-06 07:22 分类:问答Rhino Mocks - Raise Event When Property Set
I want to raise an event on a stub object whenever a certain property is set using Rhino Mocks. E.g. public interface IFoo[详细]
2023-03-05 14:37 分类:问答Unit testing void method that creates a new object
I have a method like the following: public void ExecuteSomeCommand() { new MyCommand( someInt, SomeEnum.EnumValue ).Execute();[详细]
2023-03-05 06:21 分类:问答