+ Start a Discussion
ranjan nagaraju 7ranjan nagaraju 7 

assertion failing since the value is true,is next line character will be trimmed on new version when i upgrade from 20.0 to 42.0

@isTest
private class TestRemoveInterestingMomentLinebreaks 
{
    static testMethod void updateContactTest() 
    {
        Contact c = new Contact(lastname = 'test', Last_Interesting_Moment_Desc__c = '\n\r test');
        insert c;
        system.debug('updateContactTest Before value');
         system.debug(c.Last_Interesting_Moment_Desc__c.contains('\n\r'));
        system.assert(c.Last_Interesting_Moment_Desc__c.contains('\n\r') == false);
}
}

 
ranjan nagaraju 7ranjan nagaraju 7
earlier with salesforce api version 20.0 test case was successfully running