blob: 2e8a3812ea11d3f8c0a3b3b1a01895125b7afb97 [file]
import 'package:matcher/expect.dart';
import 'package:test/scaffolding.dart';
void main() {
test('isArgumentError', () {
// This check succeeds.
expect(ArgumentError('bad'), isArgumentError);
// This check fails.
expect(StateError('nope'), isArgumentError);
// Expected: <Instance of 'ArgumentError'>
// Actual: StateError:<Bad state: nope>
// Which: is not an instance of 'ArgumentError'
});
}