Skip to content

Instantly share code, notes, and snippets.

@sfmishra
Created January 6, 2020 19:48
Show Gist options
  • Save sfmishra/5f15a376906d7a7ba798015fd92e30f7 to your computer and use it in GitHub Desktop.
Save sfmishra/5f15a376906d7a7ba798015fd92e30f7 to your computer and use it in GitHub Desktop.
@isTest
public class AccountController_Test {
@isTest static void createAccount_test() {
test.startTest();
AccountController controller = new AccountController();
Account resultAcc = controller.createAccount('Test999', 20, 999);
system.assertEquals(resultAcc.Name, 'Test999');
system.assertEquals(resultAcc.NumberOfEmployees, 20);
system.assertEquals(resultAcc.AnnualRevenue, 999);
test.stopTest();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment