Saturday, December 7, 2019

Angular 8 Unit testing Chapter4 - Arrange-Act-Assert(AAA) Pattern





  • AAA is common standard for writing the unit test cases.
  • Arrange: It means Arrange everything to setup the unit test case, like creating the objects, initializing/mocking data etc..
  • Act: Act on your unit test case, meaning execute necessary functionality/methods that needs to be unit tested.
  • Assert: This part verifies the functionality/method that we are unit testing is giving the result as per expectation.

No comments:

Post a Comment