| Index: pkg/unittest/test/matchers_test.dart
|
| diff --git a/pkg/unittest/test/matchers_test.dart b/pkg/unittest/test/matchers_test.dart
|
| index d6c0762c260ff6264a362163ea24c93429f31658..67aac3c83ce0d1eb78b6c2fd7410558f0f81c650 100644
|
| --- a/pkg/unittest/test/matchers_test.dart
|
| +++ b/pkg/unittest/test/matchers_test.dart
|
| @@ -125,14 +125,14 @@ void main() {
|
| "IndexOutOfRangeException.");
|
| });
|
|
|
| - test('throwsNoSuchMethodException', () {
|
| - shouldPass(() { throw new NoSuchMethodException(null, '', null); },
|
| - throwsNoSuchMethodException);
|
| + test('throwsNoSuchMethodError', () {
|
| + shouldPass(() { throw new NoSuchMethodError(null, '', null); },
|
| + throwsNoSuchMethodError);
|
| shouldFail(() { throw new Exception(); },
|
| - throwsNoSuchMethodException,
|
| - "Expected: throws an exception which matches NoSuchMethodException "
|
| + throwsNoSuchMethodError,
|
| + "Expected: throws an exception which matches NoSuchMethodError "
|
| "but: exception <Exception> does not match "
|
| - "NoSuchMethodException.");
|
| + "NoSuchMethodError.");
|
| });
|
|
|
| test('throwsNotImplementedException', () {
|
|
|