|
|
@ -22,9 +22,7 @@ void main() {
|
|
|
|
group('StartGameBloc', () {
|
|
|
|
group('StartGameBloc', () {
|
|
|
|
blocTest<StartGameBloc, StartGameState>(
|
|
|
|
blocTest<StartGameBloc, StartGameState>(
|
|
|
|
'on PlayTapped changes status to selectCharacter',
|
|
|
|
'on PlayTapped changes status to selectCharacter',
|
|
|
|
build: () => StartGameBloc(
|
|
|
|
build: StartGameBloc.new,
|
|
|
|
game: pinballGame,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
act: (bloc) => bloc.add(const PlayTapped()),
|
|
|
|
act: (bloc) => bloc.add(const PlayTapped()),
|
|
|
|
expect: () => [
|
|
|
|
expect: () => [
|
|
|
|
const StartGameState(
|
|
|
|
const StartGameState(
|
|
|
@ -35,9 +33,7 @@ void main() {
|
|
|
|
|
|
|
|
|
|
|
|
blocTest<StartGameBloc, StartGameState>(
|
|
|
|
blocTest<StartGameBloc, StartGameState>(
|
|
|
|
'on CharacterSelected changes status to howToPlay',
|
|
|
|
'on CharacterSelected changes status to howToPlay',
|
|
|
|
build: () => StartGameBloc(
|
|
|
|
build: StartGameBloc.new,
|
|
|
|
game: pinballGame,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
act: (bloc) => bloc.add(const CharacterSelected()),
|
|
|
|
act: (bloc) => bloc.add(const CharacterSelected()),
|
|
|
|
expect: () => [
|
|
|
|
expect: () => [
|
|
|
|
const StartGameState(
|
|
|
|
const StartGameState(
|
|
|
@ -48,9 +44,7 @@ void main() {
|
|
|
|
|
|
|
|
|
|
|
|
blocTest<StartGameBloc, StartGameState>(
|
|
|
|
blocTest<StartGameBloc, StartGameState>(
|
|
|
|
'on HowToPlayFinished changes status to play',
|
|
|
|
'on HowToPlayFinished changes status to play',
|
|
|
|
build: () => StartGameBloc(
|
|
|
|
build: StartGameBloc.new,
|
|
|
|
game: pinballGame,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
act: (bloc) => bloc.add(const HowToPlayFinished()),
|
|
|
|
act: (bloc) => bloc.add(const HowToPlayFinished()),
|
|
|
|
expect: () => [
|
|
|
|
expect: () => [
|
|
|
|
const StartGameState(
|
|
|
|
const StartGameState(
|
|
|
|