rhino-mocks
DelegateCommand<object> test with EventArg parameter mstest
I currently have an event trigger firing a custom trigger action. The action passes back a EventArgs type of object to the view\'s view-model.[详细]
2023-03-16 01:56 分类:问答Mock File IO static class in c#
I am new to Unit Testing, and I need to mock the File static class in System.IO namespace. I am using Rhinomock, what is the best way to accomplish this,[详细]
2023-03-15 23:52 分类:问答Rhino Mocks LastCall syntax help, .NET
I have a problem understanding LastCall() method. Below is an example: public interface IDemo { string Prop { get; set; }[详细]
2023-03-14 15:54 分类:问答Mock firing an event from 3rd party class
I\'m trying to write an interaction test that needs to fire an event within a class I do not own (C# 4.0 environment):[详细]
2023-03-14 11:15 分类:问答Rhino Mock Expect
Why is the response below always null in my test? SSO.cs public class SSO : ISSO { const string SSO_URL = \"http://localhost\";[详细]
2023-03-13 15:28 分类:问答How to use the Arg<> matcher from the Stub() in the Return()?
Here\'s what i\'d like to do : _service.Stub(s => s.Method(Arg<Dto>.Is.Anything)开发者_如何学Python).Return(new OtherDto { Parent = #My Arg# });[详细]
2023-03-12 03:41 分类:问答Rhino Mocks: Instantiating Mock property so Expectation can reference it
I\'m writing a unit test with a mock and I\'m having trouble writing it successfully. One of the properties is a collection and I need to reference it when setting an expectation for the mock. Right n[详细]
2023-03-11 12:56 分类:问答Unittesting a Save function using MVP pattern and RhinoMock
I am trying to get a better code coverage with my unittests, and recently I switched to using RhinoMock for my Mocking needs.[详细]
2023-03-11 00:17 分类:问答Rhino Mocks Returning a stub?
Is the following possible - var stub1 = MockRepository.GenerateStub<stub1>(); var stub2 = MockRepository.GenerateStub<stub2>();[详细]
2023-03-10 19:08 分类:问答How to set a property on a mock in C# and Rhinomocks?
I am having problems setting the value of a property in Rhinomocks. I need to set the initial value of the property outside the method under test and then set its value inside the method under test co[详细]
2023-03-10 14:35 分类:问答