Skip to content

Structure of a test case

Devrath edited this page Oct 23, 2023 · 1 revision

github-header-image (2)

Structure of test case - 3 main parts

  • Something is given -> It can be a block of code that performs some action.
  • Perform action to what is given -> We perform action to the function so that it executes.
  • Asset some states to check the output -> We assert some input and check the required output is still as expected.