OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /// Tests wrapper utilities. | 5 /// Tests wrapper utilities. |
6 | 6 |
7 import "dart:collection"; | 7 import "dart:collection"; |
8 import "package:collection_helpers/all.dart"; | 8 import "package:collection/collection.dart"; |
9 import "package:unittest/unittest.dart"; | 9 import "package:unittest/unittest.dart"; |
10 | 10 |
11 // Test that any member access/call on the wrapper object is equal to | 11 // Test that any member access/call on the wrapper object is equal to |
12 // an expected access on the wrapped object. | 12 // an expected access on the wrapped object. |
13 // This is implemented by capturing accesses using noSuchMethod and comparing | 13 // This is implemented by capturing accesses using noSuchMethod and comparing |
14 // them to expected accesses captured previously. | 14 // them to expected accesses captured previously. |
15 | 15 |
16 // Compare two Invocations for having equal type and arguments. | 16 // Compare two Invocations for having equal type and arguments. |
17 void testInvocations(Invocation i1, Invocation i2) { | 17 void testInvocations(Invocation i1, Invocation i2) { |
18 String name = "${i1.memberName}"; | 18 String name = "${i1.memberName}"; |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 }); | 246 }); |
247 | 247 |
248 test("Queue", () { | 248 test("Queue", () { |
249 testQueue(new QueueExpector()); | 249 testQueue(new QueueExpector()); |
250 }); | 250 }); |
251 | 251 |
252 test("Map", () { | 252 test("Map", () { |
253 testMap(new MapExpector()); | 253 testMap(new MapExpector()); |
254 }); | 254 }); |
255 } | 255 } |
OLD | NEW |