Files
Utsav Ghimire 769527862b initial commit
2023-03-02 11:06:39 +05:45

19 lines
554 B
Dart

import 'package:flutter_project/shared/exceptions/http_exception.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
final AppException exception =
AppException(message: 'message', statusCode: 1, identifier: 'identifier');
test(
'toString() function returns the objects',
() {
final expectedString =
'statusCode=${exception.statusCode}\nmessage=${exception.message}\nidentifier=${exception.identifier}';
final actual = exception.toString();
expect(actual, expectedString);
},
);
}