blob: 4276fc9a1a11404a042f07cb975b1f0d7e5fa920 [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.
/// @assertion Type runtimeType
/// A representation of the runtime type of the object.
///
/// @description Checks usage of runtimeType property.
/// @author ngl@unipro.ru
library runtimeType_A01_t01;
import "dart:async";
import "../../../Utils/expect.dart";
test(EventSink create()) {
EventSink es1 = create();
EventSink es2 = create();
Object o = new Object();
Expect.isTrue(es1.runtimeType is Type);
Expect.isTrue(es2.runtimeType is Type);
Expect.runtimeIsType<Type>(es1.runtimeType);
Expect.runtimeIsType<Type>(es2.runtimeType);
Expect.equals(es1.runtimeType, es2.runtimeType);
Expect.notEquals(es1.runtimeType, o.runtimeType);
}