|
|
@ -15,6 +15,15 @@ void main() {
|
|
|
|
final flameTester = FlameTester(FlameGame.new);
|
|
|
|
final flameTester = FlameTester(FlameGame.new);
|
|
|
|
|
|
|
|
|
|
|
|
group('ComponentController', () {
|
|
|
|
group('ComponentController', () {
|
|
|
|
|
|
|
|
flameTester.test(
|
|
|
|
|
|
|
|
'can be instantiated',
|
|
|
|
|
|
|
|
(game) async {
|
|
|
|
|
|
|
|
expect(
|
|
|
|
|
|
|
|
TestComponentController(Component()),
|
|
|
|
|
|
|
|
isA<ComponentController>(),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
);
|
|
|
|
flameTester.test(
|
|
|
|
flameTester.test(
|
|
|
|
'throws AssertionError when not attached to controlled component',
|
|
|
|
'throws AssertionError when not attached to controlled component',
|
|
|
|
(game) async {
|
|
|
|
(game) async {
|
|
|
|