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.
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,
I have a problem understanding LastCall() method. Below is an example: public interface IDemo { string Prop { get; set; }
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):
Why is the response below always null in my test? SSO.cs public class SSO : ISSO { const string SSO_URL = \"http://localhost\";
Here\'s what i\'d like to do : _service.Stub(s => s.Method(Arg<Dto>.Is.Anything)开发者_如何学Python).Return(new OtherDto { Parent = #My Arg# });
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
I am trying to get a better code coverage with my unittests, and recently I switched to using RhinoMock for my Mocking needs.
Is the following possible - var stub1 = MockRepository.GenerateStub<stub1>(); var stub2 = MockRepository.GenerateStub<stub2>();
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