1- Asserts that the specified condition is true. If it is not, a fatal error is returned that causes code execution to halt. 2-System.Assert accepts two parameters, one (mandatory) which is the condition to test for and the other a message (optional) to display should that condition be false.
1- Asserts that the specified condition is true. If it is not, a fatal error is returned that causes code execution to halt.
2-System.Assert accepts two parameters, one (mandatory) which is the condition to test for and the other a message (optional) to display should that condition be false.
If you want more details about system.assert then please find below link:
https://salesforce-parth.blogspot.in/2016/07/salesforce-systemassertmethods.html
Regards,
Suraj