Test.isRunningTest() is used to define whether the code is executed by test class.
Sample Code:
if(!Test.isRunningTest()) {
...................................
...................................
...................................
}
Cheers!!!
Sample Code:
if(!Test.isRunningTest()) {
...................................
...................................
...................................
}
Cheers!!!
No comments:
Post a Comment