blob: c51b67154f74027557ce51e52875d54e311f9bc0 [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 final String name
* The name of the this Expando as passed to the constructor. If no name was passed to the constructor, the name is null
* @description Checks that the value of this property is the same as the string passed to the constructor.
* @author rodionov
*/
import "../../../Utils/expect.dart";
main() {
Expect.equals("foo", new Expando("foo").name);
Expect.equals(null, new Expando().name);
}