• Jason Castle
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

I'm trying to perform a unit test on a query that doesn't debug properly in the console because its not using live data.  In an effort to provide the data in the class itself, I'm still getting nothing.  Do you know why my contact isn't being added to my new list?

 

        Contact newContact1 = new Contact(
    	LastName =  'testvalue',
        AccountId = '001g000000f14cB',
    	//company = 'testervalue',
		Lead__c = leadToConvert.Id
		);
        system.debug(newContact1);
        List<Contact> searchList = [SELECT Id,Lead__c FROM Contact WHERE Lead__c =:leadToConvert.Id];