You need to sign in to do that
Don't have an account?
sai ram
how to cover using test class createddate month
if((acc.Created_Date__c).Month()!=system.now().month() && acc.Created_Month__c != system.now().month())
this condition how to cover in apex class using test class.
this condition how to cover in apex class using test class.
https://salesforce.stackexchange.com/questions/62/unit-testing-code-which-has-logic-around-the-createddate
I hope it might help you.