|
|
@ -45,13 +45,13 @@ void main() {
|
|
|
|
'copies correctly '
|
|
|
|
'copies correctly '
|
|
|
|
'when no argument specified',
|
|
|
|
'when no argument specified',
|
|
|
|
() {
|
|
|
|
() {
|
|
|
|
const skillshotState = SkillShotState(
|
|
|
|
const skillShotState = SkillShotState(
|
|
|
|
spriteState: SkillShotSpriteState.lit,
|
|
|
|
spriteState: SkillShotSpriteState.lit,
|
|
|
|
isBlinking: true,
|
|
|
|
isBlinking: true,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
expect(
|
|
|
|
expect(
|
|
|
|
skillshotState.copyWith(),
|
|
|
|
skillShotState.copyWith(),
|
|
|
|
equals(skillshotState),
|
|
|
|
equals(skillShotState),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -60,7 +60,7 @@ void main() {
|
|
|
|
'copies correctly '
|
|
|
|
'copies correctly '
|
|
|
|
'when all arguments specified',
|
|
|
|
'when all arguments specified',
|
|
|
|
() {
|
|
|
|
() {
|
|
|
|
const skillshotState = SkillShotState(
|
|
|
|
const skillShotState = SkillShotState(
|
|
|
|
spriteState: SkillShotSpriteState.lit,
|
|
|
|
spriteState: SkillShotSpriteState.lit,
|
|
|
|
isBlinking: true,
|
|
|
|
isBlinking: true,
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -68,10 +68,10 @@ void main() {
|
|
|
|
spriteState: SkillShotSpriteState.dimmed,
|
|
|
|
spriteState: SkillShotSpriteState.dimmed,
|
|
|
|
isBlinking: false,
|
|
|
|
isBlinking: false,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
expect(skillshotState, isNot(equals(otherSkillShotState)));
|
|
|
|
expect(skillShotState, isNot(equals(otherSkillShotState)));
|
|
|
|
|
|
|
|
|
|
|
|
expect(
|
|
|
|
expect(
|
|
|
|
skillshotState.copyWith(
|
|
|
|
skillShotState.copyWith(
|
|
|
|
spriteState: SkillShotSpriteState.dimmed,
|
|
|
|
spriteState: SkillShotSpriteState.dimmed,
|
|
|
|
isBlinking: false,
|
|
|
|
isBlinking: false,
|
|
|
|
),
|
|
|
|
),
|
|
|
|