blob: 05802b6abfe34c9352df72c230b96c7ab2ea5e45 [file]
import 'package:matcher/expect.dart';
import 'package:test/scaffolding.dart';
void main() {
test('isStateError', () {
// This check succeeds.
expect(StateError('nope'), isStateError);
// This check fails.
expect(ArgumentError('bad'), isStateError);
// Expected: <Instance of 'StateError'>
// Actual: ArgumentError:<Invalid argument(s): bad>
// Which: is not an instance of 'StateError'
});
}