Showing
1 changed file
with
19 additions
and
0 deletions
1 | +import 'package:flutter_test/flutter_test.dart'; | ||
2 | +import 'package:get/utils.dart'; | ||
3 | + | ||
4 | +void main() { | ||
5 | + group('Test group for extension: isNullOrBlank', () { | ||
6 | + String testString; | ||
7 | + test('String extension: isNullOrBlank', () { | ||
8 | + expect(testString.isNullOrBlank, equals(true)); | ||
9 | + }); | ||
10 | + test('String extension: isNullOrBlank', () { | ||
11 | + testString = 'Not null anymore'; | ||
12 | + expect(testString.isNullOrBlank, equals(false)); | ||
13 | + }); | ||
14 | + test('String extension: isNullOrBlank', () { | ||
15 | + testString = ''; | ||
16 | + expect(testString.isNullOrBlank, equals(true)); | ||
17 | + }); | ||
18 | + }); | ||
19 | +} |
-
Please register or login to post a comment