fork download
  1. @istest
  2.  
  3. public class Addtest
  4.  
  5. {
  6.  
  7. static testmethod void testadd()
  8.  
  9. {
  10.  
  11. public integer a;
  12.  
  13. public integer b;
  14.  
  15. public integer c;
  16.  
  17. Add ad=new Add();
  18.  
  19. ad.a = 10;
  20.  
  21. ad.b = 20;
  22.  
  23. integer res=ad.addt();
  24.  
  25. system.assertEquals(30,res);
  26.  
  27. }
  28.  
  29. }
Success #stdin #stdout #stderr 0.01s 7768KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
./prog:1: expected expression