Arrange Act Assert
Fleeting- External reference: https://automationpanda.com/2020/07/07/arrange-act-assert-a-pattern-for-writing-good-tests/
- External reference: https://docs.telerik.com/devtools/justmock/basic-usage/arrange-act-assert
- see,
- BDD,
Arrange – setup the testing objects and prepare the prerequisites for your test.
Act – perform the actual work of the test.
Assert – verify the result
— https://docs.telerik.com/devtools/justmock/basic-usage/arrange-act-assert
The Gherkin language uses Given-When-Then steps to specify behaviors in scenarios. Given-When-Then is essentially the same formula as Arrange-Act-Assert
— https://automationpanda.com/2020/07/07/arrange-act-assert-a-pattern-for-writing-good-tests/
I like to write comments denoting each phase of the test case as well
— https://automationpanda.com/2020/07/07/arrange-act-assert-a-pattern-for-writing-good-tests/