Use dedicated methods rather than asserting something is equal to the true literal

This commit is contained in:
Daniel Ballinger 2026-03-25 14:25:55 +13:00
parent e8eebede09
commit a4f2dcbb37

View File

@ -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');
```