mirror of https://github.com/flutter/pinball.git
parent
5c095e8f93
commit
5a44f0abf3
@ -0,0 +1,21 @@
|
||||
// ignore_for_file: prefer_const_constructors
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:pinball/character_themes/character_themes.dart';
|
||||
|
||||
void main() {
|
||||
group('AndroidTheme', () {
|
||||
test('can be instantiated', () {
|
||||
expect(AndroidTheme(), isNotNull);
|
||||
});
|
||||
|
||||
test('supports value equality', () {
|
||||
expect(AndroidTheme(), equals(AndroidTheme()));
|
||||
});
|
||||
|
||||
test('ballColor is correct', () {
|
||||
expect(AndroidTheme().ballColor, equals(Colors.green));
|
||||
});
|
||||
});
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
// ignore_for_file: prefer_const_constructors
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:pinball/character_themes/character_themes.dart';
|
||||
|
||||
void main() {
|
||||
group('DashTheme', () {
|
||||
test('can be instantiated', () {
|
||||
expect(DashTheme(), isNotNull);
|
||||
});
|
||||
|
||||
test('supports value equality', () {
|
||||
expect(DashTheme(), equals(DashTheme()));
|
||||
});
|
||||
|
||||
test('ballColor is correct', () {
|
||||
expect(DashTheme().ballColor, equals(Colors.blue));
|
||||
});
|
||||
});
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
// ignore_for_file: prefer_const_constructors
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:pinball/character_themes/character_themes.dart';
|
||||
|
||||
void main() {
|
||||
group('DinoTheme', () {
|
||||
test('can be instantiated', () {
|
||||
expect(DinoTheme(), isNotNull);
|
||||
});
|
||||
|
||||
test('supports value equality', () {
|
||||
expect(DinoTheme(), equals(DinoTheme()));
|
||||
});
|
||||
|
||||
test('ballColor is correct', () {
|
||||
expect(DinoTheme().ballColor, equals(Colors.grey));
|
||||
});
|
||||
});
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
// ignore_for_file: prefer_const_constructors
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:pinball/character_themes/character_themes.dart';
|
||||
|
||||
void main() {
|
||||
group('SparkyTheme', () {
|
||||
test('can be instantiated', () {
|
||||
expect(SparkyTheme(), isNotNull);
|
||||
});
|
||||
|
||||
test('supports value equality', () {
|
||||
expect(SparkyTheme(), equals(SparkyTheme()));
|
||||
});
|
||||
|
||||
test('ballColor is correct', () {
|
||||
expect(SparkyTheme().ballColor, equals(Colors.orange));
|
||||
});
|
||||
});
|
||||
}
|
Loading…
Reference in new issue