I have so far been coding by doing mostly Get methods in my business/service layer using Rhino Mocks to get an expected List or type and making Rhino Mocks return it for me, my question is how do I te
Can I set up a mock object to always return the object given as a parameter?I have a method public MyObjec开发者_JAVA技巧t DoSomething(MyObject obj)
So the MvcContrib TestHelpers create mock versions of the following HttpContext HttpRequest HttpResponse
I\'m having another fun problem with Rhino Mocks. Can anyone answer this one: Here\'s the call that I\'m making in my code:
I got this really cool Moq method that fakes out my GetService, looks like this private Mock<IGetService<TEntity>开发者_StackOverflow中文版;> FakeGetServiceFactory<TEntity>(List<T
I\'m using MvcContrib\'s test helpers and Rhino Mocks 3.5 to test an ASP.NET MVC action method. I build my fake controller like so:
I\'m new to mocking, and I\'m having a hard time solving an issue with UnitTesting. Say I have this code:
Hi Is there a way to mock request params, what is the best approach when testing to create fake request values in order to run a test
I\'m using Rhino.Mocks 3.6 for the first time. I\'m trying to create a stub for an interface that returns an inherited type (B). When I try to do this, it will generate an InvalidCastException trying
My dynamic mock behaves as Parial mock, meaning it executes the actual code when called. Here are the ways I tried it