nerdexam
Microsoft

MB-820 · Question #22

You plan to write unit test functions to test newly developed functionality in an app. You must create a test codeunit to write the functions. You need to select the property to use for the test…

The correct answer is A. SubType. When creating a test codeunit in Microsoft Dynamics 365 Business Central to write unit test functions, the SubType property (A) of the codeunit should be set to Test. This property is crucial for defining the codeunit's purpose and behavior within the application. By setting…

Develop by using AL

Question

You plan to write unit test functions to test newly developed functionality in an app. You must create a test codeunit to write the functions. You need to select the property to use for the test codeunit. Which property should you use to ensure that the requirements are fulfilled?

Options

  • ASubType
  • BAccess
  • CDescription

How the community answered

(51 responses)
  • A
    94% (48)
  • B
    2% (1)
  • C
    4% (2)

Explanation

When creating a test codeunit in Microsoft Dynamics 365 Business Central to write unit test functions, the SubType property (A) of the codeunit should be set to Test. This property is crucial for defining the codeunit's purpose and behavior within the application. By setting the SubType property to Test, you are indicating that the codeunit contains test functions intended to validate the functionality of other parts of the application, such as customizations or new developments. This distinction ensures that the testing framework within Business Central recognizes the codeunit as a container for test functions, allowing it to execute these functions in a testing context, which can include setting up test data, running the tests, and cleaning up after the tests

Topics

#test codeunit#SubType property#unit testing#AL codeunit

Community Discussion

No community discussion yet for this question.

Full MB-820 Practice