dart-archive / mock

A library for mocking classes - DEPRECATED
https://pub.dartlang.org/packages/mock
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Mock & callsTo #6

Open DartBot opened 9 years ago

DartBot commented 9 years ago

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?

  1. 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.