blob: 8a08265804783b17de8da8c94f1a07105cfcad01 [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 void reset()
/// ...
/// This method does not stop or start the Stopwatch.
/// @description Checks that this method does not stop the Stopwatch.
/// @author sgrekhov@unipro.ru
import "dart:async";
import "../../../Utils/expect.dart";
main() {
Stopwatch sw = new Stopwatch();
sw.start();
sw.reset();
Expect.isTrue(sw.isRunning);
sw.stop();
sw.start();
sw.reset();
Expect.isTrue(sw.isRunning);
}