You need to sign in to do that
Don't have an account?
![sfdotcom sfdotcom](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Apex test class for controller
Hi, I need test class for below controller.
public class Sum
{
public integer first { get; set;}
public integer second { get; set;}
public integer result {get; set;}
public void add()
{
result = first + second ;
}
public void sub()
{
result = first - second ;
}
public void mul()
{
result = first * second ;
}
public void mod()
{
result = first / second ;
}
}
public class Sum
{
public integer first { get; set;}
public integer second { get; set;}
public integer result {get; set;}
public void add()
{
result = first + second ;
}
public void sub()
{
result = first - second ;
}
public void mul()
{
result = first * second ;
}
public void mod()
{
result = first / second ;
}
}
Hope this below test class code should cover you class
Let us know if you have any issue.
Thanks!
All Answers
Hope this below test class code should cover you class
Let us know if you have any issue.
Thanks!