blob: bee0d3350b14014b5ad51851aa3bb08ddcd8d117 [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.
/// @assertion Returns the message.
/// @description Checks that this method returns the exception message.
/// @author rodionov
/// @author varlax
import "../../../Utils/expect.dart";
main() {
ExpectException e = new ExpectException(null);
Expect.equals("", e.toString());
e = new ExpectException("foo");
Expect.isTrue(e.toString().contains("foo", 0));
}