官术网_书友最值得收藏!

Test codeunits

A test codeunit is defined by its Subtype:

codeunit Id MyFirstTestCodeunit
{
Subtype = Test;
}

This makes it different from a standard codeunit in a couple of ways:

  • It can contain the so-called test and handler functions next to the normal functions we are used to when writing app code
  • When executing a test codeunit, the platform will do the following:
    • Run the OnRun trigger and each test function that resides in the test codeunit, from top to bottom
    • Record the result of each test function
主站蜘蛛池模板: 隆化县| 民勤县| 海宁市| 财经| 五原县| 西乌珠穆沁旗| 阿瓦提县| 准格尔旗| 泾阳县| 泰和县| 霍州市| 沈阳市| 阜新市| 普洱| 茶陵县| 河东区| 攀枝花市| 平顶山市| 额济纳旗| 平乐县| 正定县| 什邡市| 缙云县| 三门县| 巴中市| 元氏县| 龙江县| 沙河市| 金华市| 定日县| 额敏县| 金乡县| 保德县| 南阳市| 黔东| 周口市| 纳雍县| 锦屏县| 阿坝县| 赤水市| 梁平县|