This issue was originally filed by mineral...@gmail.com
What steps will clearly show the issue / need for enhancement?
Write lots of tests using mock library
What is the current output?
Have to use mock.when(callsTo(...)) and mock.getLogs(callsTo(...)) everywhere.
What would you like to see instead?
Something like mock.whenCalled(...) for .when and mock.getCalls(...) for .getLogs
What version of the product are you using? On what operating system?
mock version 0.11.0+1
Please provide any additional information below.
Would like to have shortcut methods because .callsTo is supposed to be the most often used matcher for a mock.
Originally opened as dart-lang/sdk#20343
This issue was originally filed by mineral...@gmail.com
What steps will clearly show the issue / need for enhancement?
What is the current output? Have to use mock.when(callsTo(...)) and mock.getLogs(callsTo(...)) everywhere.
What would you like to see instead? Something like mock.whenCalled(...) for .when and mock.getCalls(...) for .getLogs
What version of the product are you using? On what operating system? mock version 0.11.0+1
Please provide any additional information below. Would like to have shortcut methods because .callsTo is supposed to be the most often used matcher for a mock.