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
m 3m 3 

below code with using system.assertequals write test class with more lines

public class C_Tag_Wrapper{
    @AuraEnabled public String value {get; set;}
    @AuraEnabled public Integer count {get; set;}
    @AuraEnabled public String type {get; set;}
    @AuraEnabled public Datetime createdDate {get; set;}
    @AuraEnabled public String tagDescription {get; set;}
    /*
    * Constructor of the class
    *
    * @param String the tag name
    * @param Integer the count of the tag
    * @param String the count o
    * @return none
    */
    public C_Tag_Wrapper(String tagName, Integer count, String type, Datetime createdDate, String tagDescription){
    this.value = tagName;
    this.count = count;
    this.type = type;
    this.createdDate = createdDate;
    this.tagDescription = tagDescription;
    }
    /*
    * Default Constructor of the class
    *
    * @return none
    */
    public C_Tag_Wrapper(){
    }
}
S_RathS_Rath
Hi,

If your wrapper class is used in any of the class and you have written the test class for it then you don't need to write the test class for wrapper class. It will get covered automatically.

Best practices to write test class:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_best_practices.htm

Kindly mark this answer as best answer if it resolved your query.
Thank you