What\'s the correct way to setup multiple expectations on a method if you need a different return value for each consecutive invocation in Rhino.Mocks V3.6?
Im using Rhino-Mocks 3.6 as mocking framework in my unit tests and have a problem with Repeat.Times():
I\'m using Rhino mocks to change the behaviour of a NHibernate DAL so that when the commit transaction is called by the code the mock framework changes the behaviour so the transaction is rolled back.
Been making some changes to our code, and now I need to re-factor some unit tests to make sure they\'re compatible with the new code. I\'ve come up against a problem. In this:
This test using NUnit 2.5 and Rhino.Mocks 3.5: [TestFixture] public class ExcelWorksheetColumnTests { private const string _name = \"F1\";
I\'m using Rhino Mock 3.6 Repository and Nhibernate. But I\'m getting ExpectationViolationException Expected#0, Actual #1. I\'ve spent two days on it. I don\'t know what i\'m doing wrong. Here is my c
I\'m currently learning Rhino-mocks and think I\'m confusing the line between unit t开发者_StackOverflow中文版esting and mocking.In my example below, I have a readonly Count() property for which I am
I wish to stub all dependencies out in my Rhino.Mocks unit tests, but I end up repeating myself. As the number of dependencies keeps increasing, I need to revisit my existing unit tests and need to ad
Why is this test failing? [TestMethod] public void Can_show_next_event() { // Arrange var eventsRepo = MockRepository.GenerateStub<IRepository<Event>>();
public interf开发者_开发技巧ace ICell { int Value{get;} void IncrementValue(); } I want to create a stub for this interface in RhinoMocks.