DescriptionAdd '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=
Committed: https://code.google.com/p/dart/source/detail?r=37191
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|