Created
January 6, 2020 19:48
-
-
Save sfmishra/5f15a376906d7a7ba798015fd92e30f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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