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

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
主站蜘蛛池模板: 永善县| 岑巩县| 汪清县| 东至县| 乌苏市| 汉寿县| 和政县| 赤峰市| 荔波县| 梁山县| 吴江市| 昌黎县| 沾化县| 蓬安县| 江油市| 沁水县| 纳雍县| 广宗县| 崇义县| 吉首市| 雷山县| 北安市| 呼和浩特市| 烟台市| 玉山县| 湖南省| 牙克石市| 故城县| 徐水县| 喜德县| 河源市| 休宁县| 鸡东县| 南涧| 洱源县| 个旧市| 库伦旗| 潞城市| 红桥区| 大荔县| 潮安县|