| Index: pkg/analyzer_experimental/test/generated/test_support.dart
|
| diff --git a/pkg/analyzer_experimental/test/generated/test_support.dart b/pkg/analyzer_experimental/test/generated/test_support.dart
|
| index 0152e1a3a043e65c604c80f72e9bcb4d806d086f..d0977be8e0d76960135b86008bb7344bb56e240a 100644
|
| --- a/pkg/analyzer_experimental/test/generated/test_support.dart
|
| +++ b/pkg/analyzer_experimental/test/generated/test_support.dart
|
| @@ -613,6 +613,22 @@ class EngineTestCase extends JUnitTestCase {
|
| }
|
|
|
| /**
|
| + * Assert that the given collection is non-`null` and has the expected number of elements.
|
| + *
|
| + * @param expectedSize the expected number of elements
|
| + * @param c the collection being tested
|
| + * @throws AssertionFailedError if the list is `null` or does not have the expected number
|
| + * of elements
|
| + */
|
| + static void assertCollectionSize(int expectedSize, Iterable c) {
|
| + if (c == null) {
|
| + JUnitTestCase.fail("Expected collection of size ${expectedSize}; found null");
|
| + } else if (c.length != expectedSize) {
|
| + JUnitTestCase.fail("Expected collection of size ${expectedSize}; contained ${c.length} elements");
|
| + }
|
| + }
|
| +
|
| + /**
|
| * Assert that the given list is non-`null` and has the expected number of elements.
|
| *
|
| * @param expectedSize the expected number of elements
|
|
|