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

Unified Diff: test/command_test.dart

Issue 1985883002: UsageException isn't called UsageError. (Closed) Base URL: git@github.com:dart-lang/args@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « test/command_runner_test.dart ('k') | test/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/command_test.dart
diff --git a/test/command_test.dart b/test/command_test.dart
index 127cfc916c5a41ceb68df7c771819d45af55ca68..cd32c63dabb408cb950769b44ed6fed0efff20e4 100644
--- a/test/command_test.dart
+++ b/test/command_test.dart
@@ -90,7 +90,8 @@ Run "test help" to see global options."""));
});
test("usageException splits up the message and usage", () {
- expect(() => foo.usageException("message"), throwsUsageError("message", """
+ expect(() => foo.usageException("message"),
+ throwsUsageException("message", """
Usage: test foo [arguments]
-h, --help Print this usage information.
« no previous file with comments | « test/command_runner_test.dart ('k') | test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698