I am using reflective typemock to mock a method call as follows:
spaceCommunityBrokerMocked.ExpectAndReturn("Select", spaceCommunityMocked.Object).When(webTitle);
webTitle is a string variable and I am passing that to the mocked object of SPWeb.(setting expectations).
The actual code for this method call is
SpaceCommunity community = objectCommunityBroker.Select(listWeb.Title);
I have mocked all the other objects which are present in the method. But I am getting a Typemock.VerifyException specifying SpaceCommunity.Select has one more expected calls. Would anyone please help?