OLD | NEW |
---|---|
(Empty) | |
1 library args_test_shared; | |
Bob Nystrom
2013/11/26 19:07:41
Couple of things:
- Add the copyright header abov
| |
2 | |
3 import 'package:unittest/unittest.dart'; | |
4 import 'package:args/args.dart'; | |
5 | |
6 void throwsIllegalArg(function, {String reason: null}) { | |
7 expect(function, throwsArgumentError, reason: reason); | |
8 } | |
9 | |
10 void throwsFormat(ArgParser parser, List<String> args) { | |
11 expect(() => parser.parse(args), throwsFormatException); | |
12 } | |
OLD | NEW |