rhino-mocks
Setup multiple expectations on a method in Rhino.Mocks
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?[详细]
2023-02-09 20:46 分类:问答Rhino Mocks: Minimal times to call seems not to work
Im using Rhino-Mocks 3.6 as mocking framework in my unit tests and have a problem with Repeat.Times():[详细]
2023-02-09 17:58 分类:问答Rhino mocks throws exception of "Callback arguments didn't match the method arguments delegate" on the do method
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.[详细]
2023-02-07 15:56 分类:问答How can I use Rhino mocks to mock just one value in a test object?
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:[详细]
2023-02-06 22:34 分类:问答Why do I get an ExpectationViolationException when using a Stub?
This test using NUnit 2.5 and Rhino.Mocks 3.5: [TestFixture] public class ExcelWorksheetColumnTests { private const string _name = \"F1\";[详细]
2023-02-06 11:18 分类:问答Rhino Mock 3.6 Repository Expected #0, Actual#1
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[详细]
2023-02-06 05:47 分类:问答How do I use Rhino-mocks when unit testing getters/setters?
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[详细]
2023-02-06 05:01 分类:问答C# Rhino.Mocks - How do I write test code without repeating myself?
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[详细]
2023-02-05 17:39 分类:问答Unit testing generic repository with rhino mocks
Why is this test failing? [TestMethod] public void Can_show_next_event() { // Arrange var eventsRepo = MockRepository.GenerateStub<IRepository<Event>>();[详细]
2023-02-03 20:41 分类:问答Stub the behavior of a readOnly property
public interf开发者_开发技巧ace ICell { int Value{get;} void IncrementValue(); } I want to create a stub for this interface in RhinoMocks.[详细]
2023-02-03 08:05 分类:问答