ДАРТ -тест Ожидайте ASSER

import 'package:test/test.dart';

void main() {
  test('assert throws assert', () {
    expect(() {
      assert(false);
    }, throwsA(isA<AssertionError>());
  });
}
Naughty Nightingale