| Index: pkg/unittest/test/mock_test.dart
|
| ===================================================================
|
| --- pkg/unittest/test/mock_test.dart (revision 22214)
|
| +++ pkg/unittest/test/mock_test.dart (working copy)
|
| @@ -718,5 +718,15 @@
|
| expect(m.foo("bar", "mock"), "C");
|
| m.resetBehavior();
|
| });
|
| +
|
| + solo_test('Spys', () {
|
| + var real = new Foo();
|
| + var spy = new Mock.spy(real);
|
| + var sum = spy.sum(1, 2, 3);
|
| + expect(sum, 6);
|
| + expect(() => spy.total(1, 2, 3), throwsNoSuchMethodError);
|
| + spy.getLogs(callsTo('sum')).verify(happenedExactly(1));
|
| + spy.getLogs(callsTo('total')).verify(happenedExactly(1));
|
| + });
|
| }
|
|
|
|
|