• Sree Accenture
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Please suggest me if any one knows the below code pass in test class.

for (Accounts__c acc : (List<Accounts__c>)Trigger.New)
        {
            if((String.isNotBlank(acc.Billing_Country__c) && trigger.isInsert) || ((String.isNotBlank(acc.Billing_Country__c) && trigger.isUpdate && ((Map<Id, Accounts__c>)Trigger.oldMap).get(acc.Id).Billing_Country__c != acc.Billing_Country__c)))
            {
                UpdatedAccs.add(acc);
                setCountries.add(acc.Billing_Country__c);
            }    
                
        }