|
|
@ -7,6 +7,10 @@ void main() {
|
|
|
|
test('can be instantiated', () {
|
|
|
|
test('can be instantiated', () {
|
|
|
|
expect(const BallLost(), isNotNull);
|
|
|
|
expect(const BallLost(), isNotNull);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test('supports value equality', () {
|
|
|
|
|
|
|
|
expect(const BallLost(), equals(const BallLost()));
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
group('Scored', () {
|
|
|
|
group('Scored', () {
|
|
|
@ -14,6 +18,10 @@ void main() {
|
|
|
|
expect(const Scored(points: 1), isNotNull);
|
|
|
|
expect(const Scored(points: 1), isNotNull);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test('supports value equality', () {
|
|
|
|
|
|
|
|
expect(const Scored(points: 1), equals(const Scored(points: 1)));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
test(
|
|
|
|
test(
|
|
|
|
'throws AssertionError '
|
|
|
|
'throws AssertionError '
|
|
|
|
'when score is smaller than 1', () {
|
|
|
|
'when score is smaller than 1', () {
|
|
|
|