You need to sign in to do that
Don't have an account?
Mubarak Hussain 1
assert RecordType in Testclass
Hi all,
How to Assert the recordTypes in Tesclass.
list<case>clist=list<case>();
...
system.assertEquals(clist[0].recordTypeId,ExampleRecordtype.id);
But am getting expected and actual value different error.
Thanks
How to Assert the recordTypes in Tesclass.
list<case>clist=list<case>();
...
system.assertEquals(clist[0].recordTypeId,ExampleRecordtype.id);
But am getting expected and actual value different error.
Thanks
system.assertEquals(clist[0].recordTypeId , properties.Example1.id);
Please let us know if this will help u