blob: 92f2c29886c3e7b55c3d5fd7f1dd6c4f7b4c2df0 [file] [log] [blame]
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/// @assertion ArgumentError.notNull([String name])
/// Create an argument error for a null argument that must not be null.
/// @description Checks that this constructor can be called without argument
/// @author sgrekhov@unipro.ru
import "../../../Utils/expect.dart";
main() {
ArgumentError err = new ArgumentError.notNull();
Expect.isNull(null, err.name);
Expect.equals("Must not be null", err.message);
}