You need to sign in to do that
Don't have an account?
ariella noth
Help with Assertion Failed
Im working on a test class, and this chunk below is resulting in an Assertion Failed error. Its returning as "Expected 1, Actual Null"
//Insert our first task
Task t = new Task(subject='Test Activity', whoId = leds.id);
insert t;
//Verify count
leds = [SELECT ID, Number_of_Activities__c FROM Lead WHERE ID = :leds.id];
System.assertEquals(1,leds.Number_of_Activities__c);
Any help is appreciated.
//Insert our first task
Task t = new Task(subject='Test Activity', whoId = leds.id);
insert t;
//Verify count
leds = [SELECT ID, Number_of_Activities__c FROM Lead WHERE ID = :leds.id];
System.assertEquals(1,leds.Number_of_Activities__c);
Any help is appreciated.
Raj Vakati
Number_of_Activities__c is formula field ? or its a number filed ..