Microsoft Dynamics 365 Blog

Writing Unit Tests in C/AL 

11 min read

What is a unit?A unit is any code that encapsulates an implementation. It could be one or a combination of individual functions or triggers.Thus, a unit could also refer to a local function. A unit, from the C/AL perspective, has the following: Inputs: Database state, input parameters, global variables Outputs: Return values, Parameters passed as…Read more