public class HelloWorld { public String hello(integer wRet ) { if (wRet >0) { return 'Hello World_1'; } else { return 'Hello World_0'; } } }
@isTest(SeeAllData=false)
public class HelloWorld_isTest {
static testMethod void validateHellow() {
HelloWorld hello_world = new HelloWorld();
String result1 = hello_world.hello(2);
String result0 = hello_world.hello(0);
}
}