[Unit tests] Mocking D objects

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Fri Aug 24 03:27:28 UTC 2018


On Wednesday, 22 August 2018 at 08:33:36 UTC, Andrey wrote:
> Hello,
> I know that D has build-in unit tests. If so, what mechanism D 
> provides for mocking objects?

I'd like to pose the question, what are you testing. This looks 
like you are testing that your mocked object returns 10. I 
usually try to make functions more pure like.


More information about the Digitalmars-d-learn mailing list