Slide 52
Slide 52 text
ςετͷՄಡੑ
HJWFO@XIFO@UIFO
extension MyAppThen on WidgetTestThen<_MyAppTestHarness> {
void canFindZero() {
expect(find.text('0'), findsOneWidget);
}
void cannotFindZero() {
expect(find.text('0'), findsNothing);
}
void canFindOne() {
expect(find.text('1'), findsOneWidget);
}
void cannotFindOne() {
expect(find.text('1'), findsNothing);
}
void canFindTwo() {
expect(find.text('2'), findsOneWidget);
}
void cannotFindTwo() {
expect(find.text('2'), findsNothing);
}
}