blob: ae99d728e431a7bec7f6497b1257c29ec4b43ce4 [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));
}