3 réponses

Hi SAroras,I have gone through your question. To make the test Class of Trigger you have to do the two DML operation in your Test Class i.e. insert and Update.Test Class of your Trigger with 100% code coverage is given below:-@isTestpublic class CaseTriggerTest { public testmethod static void caseTestMethod(){ Case c = new Case(); c.Origin = 'Phone'; Test.startTest(); insert c; c.Delete_Case__c = true; update c; Test.stopTest(); }} I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.Thanks and Regards,Deepali Kulshresthawww.kdeepali.com