Index: pkg/analyzer/test/generated/resolver_test.dart |
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart |
index 2c3aad974019075bfe7b20ef41f85c0d1a0a1971..006ef078bf455bd807ae4c62f10c29836867fd4b 100644 |
--- a/pkg/analyzer/test/generated/resolver_test.dart |
+++ b/pkg/analyzer/test/generated/resolver_test.dart |
@@ -985,24 +985,18 @@ class SubtypeManagerTest { |
class TypeOverrideManagerTest extends EngineTestCase { |
void test_exitScope_noScopes() { |
TypeOverrideManager manager = new TypeOverrideManager(); |
- try { |
+ expect(() { |
manager.exitScope(); |
- fail("Expected IllegalStateException"); |
- } on IllegalStateException { |
- // Expected |
- } |
+ }, throwsStateError); |
} |
void test_exitScope_oneScope() { |
TypeOverrideManager manager = new TypeOverrideManager(); |
manager.enterScope(); |
manager.exitScope(); |
- try { |
+ expect(() { |
manager.exitScope(); |
- fail("Expected IllegalStateException"); |
- } on IllegalStateException { |
- // Expected |
- } |
+ }, throwsStateError); |
} |
void test_exitScope_twoScopes() { |
@@ -1011,12 +1005,9 @@ class TypeOverrideManagerTest extends EngineTestCase { |
manager.exitScope(); |
manager.enterScope(); |
manager.exitScope(); |
- try { |
+ expect(() { |
manager.exitScope(); |
- fail("Expected IllegalStateException"); |
- } on IllegalStateException { |
- // Expected |
- } |
+ }, throwsStateError); |
} |
void test_getType_enclosedOverride() { |