You need to sign in to do that
Don't have an account?
Pratiksha Raut 1
I'm writing a test class where I need to pass old and new values of a record to a method in apex class?
Boolean.valueOf(newRecord.get('Custom_Field__c')) != Boolean.valueOf(oldRecord.get('Custom_Field__c'))
get referance from following dummy Examples and Made changes according your requirment. And If you have any trigger on your object then you can apply following way.
let me know if it helps you and marking it as best.
Thank You
Hi pratiksha,
Can you please share your code with the test class so that I could write the test class.
Thank you
This is my Class:
Test Class:
Thank you in advance!!