mirrored_repositories/Flutter_playground/test/unit_test
import 'package:test/test.dart';
import 'package:unit_test/counter.dart';

void main() {
  group('Counter', () {
    test('Counter value should start at 0', () {
      expect(Counter().value, 0);
    });

    test('Counter value should be incremented', () {
      final counter = Counter();

      counter.increment();

      expect(counter.value, 1);
    });

    test('Counter value should be decremented', () {
      final counter = Counter();

      counter.decrement();

      expect(counter.value, -1);
    });
  });
}
