Distinction between cleanup functions

Clear — Deletes internal state of objects associated with mock resulting in empty object.
Unmock — Re-assigns transformation of classes back to original state prior to mock.

This is the correct distinction as confirmed by Oleksiy Pylypenko from his Twitter response.

Much appreciated for the ‘Mocking is not rocket science` series! I could not have gotten up and running as fast without it. I created a notes guide here based on the series.

Creator of Coinverse - The 1st Crypto News Audiocast App @ bit.ly/play-coin

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store