Test.isRunningTest()
is used to define whether the code is executed by test class.
Here is an example:
if(!Test.isRunningTest()) { //Your Code }
Test.isRunningTest()
is used to define whether the code is executed by test class.
Here is an example:
if(!Test.isRunningTest()) { //Your Code }