Is it correct that Rhino Mocks stubs and mocks are only good for interfaces, not concrete classes? I spent quite a time trying to make this piece of code working. I did not expect the stubbed pubSubCl
I\'ve been using RhinoMocks lately but I keep running into an issue.If I break into the debugger and step over code while a mock is in Record mode, I end up getting an exception along the lines of:
I\'ve just been working on some tests using Moq but ran into trouble trying to test a method I wanted to call twice through a try catch block.The principle is that the first call throws an exception,
I\'m trying to set up blade unit tests in an MVC Turbine-derived site.The problem is that I can\'t seem to mock the IServiceLocator interface without hitting the following exception:
I have a test which looks a bit like this (I\'m simplifying a bit from my real issue): [Test] public void Eat_calls_consumption_tracker_OnConsume()
I have this problem, which m开发者_Python百科ay be a bug in Rhino Mocks 3.5: stubObj = MockRepository.GenerateStub(IObject);
Is it possible to stub only one property and keep other\'s behaviour using Rhino Mocks? Upd. Example: I have a class with two properties
I am using Joshua Flanagan article “Auto mocking Explained” as a guide.In the article there is a section called “The same tests, with automocker would look like this”.I used this information to bu
Is it possible to 开发者_运维问答tell that a mock/stub has seen no interaction at all in RhinoMocks.
I am creating a repository that exposes IQueryable. What is the best way to mock this out for my unit testing?