ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 25 - MB-820 discussion

Report
Export

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?

A.

SubType

Answers
A.

SubType

B.

Access

Answers
B.

Access

C.

Description

Answers
C.

Description

Suggested answer: A

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 have completed.

asked 05/10/2024
Lee Michael
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first