rhino-mocks
How can I set up expectations for event registration on a multimock
I am using RhinoMocks 3.6 and would like to use the multimock feature to implement both a class and a 开发者_开发百科interface.[详细]
2023-03-27 02:15 分类:问答Rhino mock an abstract class w/o mocking its virtual method?
Can I execute the body of a virtual method that l开发者_JAVA技巧ives on an abstract class which has been mocked using Rhino Mocks?[详细]
2023-03-26 09:46 分类:问答How to set the Expect call to check that a method is not called in Rhino Mocks
Using Rhino Mocks, how do I ensure that a method is not called while setting up the Expectations on the mock object.[详细]
2023-03-24 06:44 分类:问答Using Rhino Mocks how to check the value of a Struct Field in the parameter passed to a mock object?
In Rhino Mocks, I am testing for a method called Store in the Subject class. The Subject.Store(Member) internally calls IStore.Store(Person). How do I check that the name parameter that i set on the M[详细]
2023-03-23 23:38 分类:问答Mocking TransactionTemplate from Spring.Net with Rhino mocks
I\'m trying to create mock of TransactionTemplate var tTemplate = MockRepository.GenerateMock<TransactionTemplate>();[详细]
2023-03-22 19:31 分类:问答RhinoMocks exception that has no meaning
Rhino.Mocks.Exceptions.ExpectationViolationException was unhandled by user code M开发者_JAVA技巧essage=Service.GetCommunityLightPagered(null, 1, null, null, Data.PagingInfo);[详细]
2023-03-19 20:17 分类:问答Unit testing ensure one method calls another method
[HttpPost] public ActionResult Create(Car car) { _repository.CreateCar(car); _repository.UpdateRegistrationDetails(car);[详细]
2023-03-19 10:25 分类:问答Why use a Mocking Framework?
We\'re currently following the DI model usin开发者_开发知识库g Autofac as an IoC container. We\'ve recently started looking into mocking frameworks like MOQ and Rhino Mocks. However, we can\'t seem t[详细]
2023-03-17 00:40 分类:问答Mocks to verify interaction
Typically when I need to mock out a class for testing, I\'ll use a library such as Rhino Mocks.Here I have a class called MyService that expects a IEmailSender.[详细]
2023-03-16 04:51 分类:问答Can I use Moq with MvcContrib.TestHelper?
I\'m working on my first ASP .NET MVC project and prior to this moment I\'ve only used Rhino.Mocks for desktop applications.[详细]
2023-03-16 04:20 分类:问答