function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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

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.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