blob: f11a63c29de6550d2d2ed1f3bfaf64154c4ae5b0 [file] [log] [blame]
// Copyright (c) 2011, 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 Returns the message.
/// @description Checks that this method returns the exception message.
/// @author rodionov
/// @author varlax
/// @reviewer varlax
/// @needsreview undocumented
import "../../../Utils/expect.dart";
main() {
ExpectException e = new ExpectException(null);
Expect.isTrue(e.toString() == null);
e = new ExpectException("foo");
Expect.isTrue(e.toString().contains("foo",0));
}