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

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

Issue 10909166: Rename NoSuchMethodException to NoSuchMethodError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months 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
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', () {

Powered by Google App Engine
This is Rietveld 408576698