feat: included addAll test

pull/121/head
alestiago 4 years ago
parent b8ccfcb78d
commit f856df538b

@ -52,9 +52,24 @@ void main() {
final component = ControlledComponent();
final controller = TestComponentController(component);
final anotherComponent = Component();
await expectLater(
() async => controller.add(anotherComponent),
() async => controller.add(Component()),
throwsException,
);
},
);
flameTester.test(
'throws Exception when adding multiple components',
(game) async {
final component = ControlledComponent();
final controller = TestComponentController(component);
await expectLater(
() async => controller.addAll([
Component(),
Component(),
]),
throwsException,
);
},

Loading…
Cancel
Save