| Index: pkg/unittest/test/matchers_test.dart
|
| diff --git a/pkg/unittest/test/matchers_test.dart b/pkg/unittest/test/matchers_test.dart
|
| index 11bdcc2261d4f2dea1b7706e333e06f7aa612daf..69aa98f1d368768c991a2c9e3e221c28fd788a27 100644
|
| --- a/pkg/unittest/test/matchers_test.dart
|
| +++ b/pkg/unittest/test/matchers_test.dart
|
| @@ -155,15 +155,15 @@ void main() {
|
| "NullPointerException.");
|
| });
|
|
|
| - test('throwsUnsupportedOperationException', () {
|
| - shouldPass(() { throw new UnsupportedOperationException(''); },
|
| - throwsUnsupportedOperationException);
|
| + test('throwsStateError', () {
|
| + shouldPass(() { throw new StateError(''); },
|
| + throwsStateError);
|
| shouldFail(() { throw new Exception(); },
|
| - throwsUnsupportedOperationException,
|
| + throwsStateError,
|
| "Expected: throws an exception which matches "
|
| - "UnsupportedOperationException "
|
| + "StateError "
|
| "but: exception <Exception> does not match "
|
| - "UnsupportedOperationException.");
|
| + "StateError.");
|
| });
|
|
|
| test('returnsNormally', () {
|
|
|