Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Unified Diff: pkg/typed_mock/test/typed_mock_test.dart

Issue 324083005: Add 'resetInteractions' into typed_mock. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/typed_mock/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/typed_mock/test/typed_mock_test.dart
diff --git a/pkg/typed_mock/test/typed_mock_test.dart b/pkg/typed_mock/test/typed_mock_test.dart
index c2dc90705732425e58a4929c9247cfc8a45959e3..9585673bc62ef5b9f185b84e953da9a0a73e91d1 100644
--- a/pkg/typed_mock/test/typed_mock_test.dart
+++ b/pkg/typed_mock/test/typed_mock_test.dart
@@ -183,6 +183,14 @@ main() {
});
});
+ test('resetInteractions', () {
+ TestInterfaceMock obj = new TestInterfaceMock();
+ obj.testProperty;
+ obj.testMethod0();
+ resetInteractions(obj);
+ verifyZeroInteractions(obj);
+ });
+
group('verify', () {
TestInterfaceMock obj;
setUp(() {
« no previous file with comments | « pkg/typed_mock/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698