dart-sdk/pkg/typed_mock
scheglov@google.com f133e5eded Add 'resetInteractions' into typed_mock.
1. I decided not to change the verifyZeroInteractions(TypedMock) API.
   There is an advantage in having it typed, such as (potentially) improved code completion.

   The drawback is that tests have to use MyClassMock type annotatino instead of MyClass.
   But TypedMock does not have any API, so it should not be a big problem.

2. It is impossible to distinguish 'get:foo' access from taking a reference to a method or property invocation.
   I guess it is intentional.
   We could probably distinguish them using mirrors, but typed_mock should work without mirrors.
   So, resetInteractions() should be used.

R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org//324083005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37191 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-10 18:23:25 +00:00
..
lib Add 'resetInteractions' into typed_mock. 2014-06-10 18:23:25 +00:00
test Add 'resetInteractions' into typed_mock. 2014-06-10 18:23:25 +00:00
LICENSE Add the required LICENSE file. 2014-05-14 15:50:01 +00:00
pubspec.yaml Add 'resetInteractions' into typed_mock. 2014-06-10 18:23:25 +00:00