mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-07 00:02:34 +08:00
Use dedicated methods rather than asserting something is equal to the true literal
This commit is contained in:
parent
e8eebede09
commit
a4f2dcbb37
@ -34,7 +34,7 @@ Assert.isTrue(accounts.size() > 0);
|
||||
### ✅ Good: Descriptive message, tests specific behavior
|
||||
|
||||
```apex
|
||||
Assert.areEqual(true, result, 'Service should return true for valid input');
|
||||
Assert.isTrue(result, 'Service should return true for valid input');
|
||||
Assert.areEqual(200, accounts.size(), 'All 200 accounts should be processed');
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user