And I add chapters in PharoInProgress 2016-04-06 14:29 GMT+02:00 Denis Kudriashov <[email protected]>:
> I am glad to present simplest mocks for Pharo. > In this version Mocketry is dramatically improved and changed. I try to > provide most simple way to stub any message to any object and to verify any > occurred behaviour. > > You can read full details in my blog > http://dionisiydk.blogspot.fr/2016/04/new-version-of-mocketry-30.html > > Here is short example: > > mock := Mock new. > mock *stub* someMessage *willReturn:* 1000. > mock someMessage should be: 1000. > mock *should got* someMessage. > mock *should not* *got* anotherMessage. > rect := 0@0 corner: 2@3. > rect *stub* width willReturn: 1000. > rect area should be: 3000 "area = width * height". > rect *should got* width. >
