Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(850)

Unified Diff: pkg/unittest/test/matchers_test.dart

Issue 11358060: Change NotImplementedException to UnimplementedError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/unittest/lib/src/core_matchers.dart ('k') | runtime/lib/function_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test/matchers_test.dart
diff --git a/pkg/unittest/test/matchers_test.dart b/pkg/unittest/test/matchers_test.dart
index 149673badd2d0f7984cf97fbf3c31523738eff28..22f2f0ca479c8ed2d46220c1bf9ba42cefb4ba9b 100644
--- a/pkg/unittest/test/matchers_test.dart
+++ b/pkg/unittest/test/matchers_test.dart
@@ -144,14 +144,14 @@ void main() {
"NoSuchMethodError.");
});
- test('throwsNotImplementedException', () {
- shouldPass(() { throw new NotImplementedException(''); },
- throwsNotImplementedException);
+ test('throwsUnimplementedError', () {
+ shouldPass(() { throw new UnimplementedError(''); },
+ throwsUnimplementedError);
shouldFail(() { throw new Exception(); },
- throwsNotImplementedException,
- "Expected: throws an exception which matches NotImplementedException "
+ throwsUnimplementedError,
+ "Expected: throws an exception which matches UnimplementedError "
"but: exception <Exception> does not match "
- "NotImplementedException.");
+ "UnimplementedError.");
});
test('throwsNullPointerException', () {
« no previous file with comments | « pkg/unittest/lib/src/core_matchers.dart ('k') | runtime/lib/function_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698