If I have a method that calls itself under a certain condition, is it possible to write a test to verify the behavior? I\'d l开发者_JS百科ove to see an example, I don\'t care about the mock framework
In a method in presenter,I expect a method of view to be called.This method is also passed data extracted from a service method(which is not mocked).This service method basically gets data from databa
So I\'ve got this method called LoginUser: public void LoginUser(out SystemUse开发者_JAVA百科r userToLogin, string username)
var fakeRoles = MockRepository.GenerateStub < IDictionary<PermissionLevel, string>>(); fakeRoles[PermissionLevel.Developer] = \"Developer\";
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
Is it possible to mock a stub/mock\'s object member call without having to define that as a stub, and also set the return value as all seperate verbose lines?
We\'re currently migrating from NMock2 to RhinoMocks and we\'re having trouble replicating this code:
I\'ve been looking around for some decent information on using Rhino Mocks 开发者_Go百科3.5+ with the AAA syntax. I find a lot of blogs that have a mix of things from the old and new which seem to mak
I\'m trying to get Figure 3 Fake Database from IRepository using the example here http://msdn.microsoft.com/en-us/magazine/dd263069.aspx
Related to yesterday\'s question. I implemented the solution proposed by Mehrdad Afshari but this caused another problem.