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
Debaranjan GhoshDebaranjan Ghosh 

PD1 Question 32

Question 32 ( Topic 1 )     
Using the Schema Builder, a developer tries to change the API name of a field that is 
referenced in an Apex test class.    
What is the end result?     
• A. The API name is not changed and there are no other impacts. 
• B. The API name of the field and the reference in the test class is changed. 
• C. The API name of the field is changed, and a warning is issued to update the class.
• D. The API name of the field and the reference in the test class is updated. 
Answer : C      

I tried this from Schema Browser with below Code and System did not allow me to Change API Name of the field (Error given below)
Can you please explain what I am missing here? 
@isTest    
private class AddressTest {    
    static TestMethod void AddressTest_UnitTest(){    
        Test.startTest();    
            Address__c account = new Address__c(Address_Line_1__c = '100');    
            insert account;
        Test.stopTest();    
    }    
}    
Cannot rename custom field referenced in Apex class or trigger: <a href="/01p6F00000R8nDn">AddressTest</a>