| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'package:unittest/src/backend/declarer.dart'; | 5 import 'package:unittest/src/backend/declarer.dart'; |
| 6 import 'package:unittest/src/backend/state.dart'; | 6 import 'package:unittest/src/backend/state.dart'; |
| 7 import 'package:unittest/src/backend/suite.dart'; | 7 import 'package:unittest/src/backend/suite.dart'; |
| 8 import 'package:unittest/src/runner/engine.dart'; | 8 import 'package:unittest/src/runner/engine.dart'; |
| 9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
| 10 | 10 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 var engine = new Engine([new Suite("suite", declarer.tests)]); | 78 var engine = new Engine([new Suite("suite", declarer.tests)]); |
| 79 expect(engine.run(), completion(isFalse)); | 79 expect(engine.run(), completion(isFalse)); |
| 80 }); | 80 }); |
| 81 | 81 |
| 82 test(".run() may not be called more than once", () { | 82 test(".run() may not be called more than once", () { |
| 83 var engine = new Engine([]); | 83 var engine = new Engine([]); |
| 84 expect(engine.run(), completes); | 84 expect(engine.run(), completes); |
| 85 expect(() => engine.run(), throwsStateError); | 85 expect(() => engine.run(), throwsStateError); |
| 86 }); | 86 }); |
| 87 } | 87 } |
| OLD | NEW |