+ Start a Discussion
SoundarSoundar 

How can i cover a boolean in test class

Dear friends,

How can i cover following line in test class.

Public Boolean isShowOpp {get;set;}   //  This line is not covering in the test class.

Thanks in advance.

Regards,
Soundar Raj
SoundarSoundar
Yeah ... thank God finally i found  a slution (it's too easy step onle).

ClassName cls = New ClassName();
cls.fieldName=true;
 

it's coverd in test class...

Regards,
Soundar raj.