I would like to set up a return value
_stubRepository.Stub(Contains(null)).IgnoreArguments().Return(true);
but then in a specific test, override that expectation to return false.
Something like:
_stubRepository.ClearExpectations(); //<- this does not exist, I'm just making something up
_stubRepository.Stub(Contains(null)).IgnoreArguments().Return(false);
Notice, I do not want the expectation to return false on the second call, I want to override the first expectation.
This would help simplify my testing scenario greatly.
See Question&Answers more detail:os