Rewrite isEmpty and isNotEmpty to just access the isEmpty/isNotEmpty.

Adapt the unit tests and add a small regression test for
https://code.google.com/p/dart/issues/detail?id=21562 to check that
`expect(null, isNot(isEmpty))` fails.

BUG=21792, 21562
4 files changed
tree: 3edc9db989798f6047fad175aba9b8fb85650cb0
  1. lib/
  2. test/
  3. .gitignore
  4. .status
  5. CHANGELOG.md
  6. codereview.settings
  7. LICENSE
  8. pubspec.yaml
  9. README.md
README.md

Support for specifying test expectations, such as for unit tests.

The matcher library provides a third-generation assertion mechanism, drawing inspiration from Hamcrest.

For more information, see Unit Testing with Dart.