GardenPlanner/test/entities/beet_test.dart

24 lines
578 B
Dart
Raw Normal View History

2023-06-25 10:13:39 +02:00
import 'package:flutter_test/flutter_test.dart';
import 'package:garden_planner/entities/beet.dart';
void main() {
test('Beet entity Add new Row Test', () {
// Arrange
final beet = Beet();
// Act
beet.addNewRow();
// Assert
expect(beet.beetRows.length, equals(2),
reason: 'beetrows count should be 1');
});
test('Beet entity Test', () {
// Arrange
final beet = Beet();
// Assert
//new Beet creats every times the first row
expect(beet.beetRows.length, equals(1),
reason: 'beetrows count should be 1');
});
}