Issue by bgourlieOriginally opened as dart-lang/sdk#21945
The _ArgumentMatcher_equals class in the typed_mock library should check for reference equality before checking equivalence using '=='. Currently, it only checks equivalence which means I have to implement == and hascode() on any object I want to pass as an argument to a mocked method.
If typed_mock lived on GitHub, I could just submit a PR :)
Issue by bgourlie Originally opened as dart-lang/sdk#21945
The _ArgumentMatcher_equals class in the typed_mock library should check for reference equality before checking equivalence using '=='. Currently, it only checks equivalence which means I have to implement == and hascode() on any object I want to pass as an argument to a mocked method.
If typed_mock lived on GitHub, I could just submit a PR :)