commit | 6d8d0170256da2f332b7910263941016a4cf782a | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Thu Jun 14 13:21:35 2018 -0700 |
committer | GitHub <noreply@github.com> | Thu Jun 14 13:21:35 2018 -0700 |
tree | 2e63da2a248e762f21a77948e6c9ec8105e72fa4 | |
parent | fa96b14c7d7eeee2dac51bf237fa13b897cb05e5 [diff] |
feature: Upgrade TypeMatcher, deprecate isInstanceOf (#88) `TypeMatcher` - No longer abstract - Added type parameter - Deprecate the existing `name` parameter, tell folks to the type param - Added `having` method which allows chained validation of features - Eliminated 13 private implementations from the package - Just use it directly. - Moved to its own file Deprecate `isInstanceOf` class. - Tell folks to use `TypeMatcher<T>` instead - Run away from weirdly named classes Tests - centralizing tests in type_matcher_test - Removed isInstanceOf tests from core_matchers_test
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.