Had a few occasions where a Partial mock was calling the real method even though an expectation had been defined.
The reason was that the method being called was not marked as Virtual and so not being overridden by the mock repository.
This blog is a record of some development issues I have faced. There may be something of use!
Had a few occasions where a Partial mock was calling the real method even though an expectation had been defined.
The reason was that the method being called was not marked as Virtual and so not being overridden by the mock repository.