Winter 23 – API 56

New System.Assert class

The new System.assert class is the preferred way to perform unit test asserts going forward. It provides more options and more clarity around what is being tested and the results.

I encourage you to use it instead of the existing system.assert, system.assertEquals and system.assertNotEquals methods.