开发者

How to write Unit Tests

Can anyone assist me in writing Unit Tests in AX. Points like

  1. What are the conditions that i nee开发者_如何学Cd to cover
  2. What are asserts.

And all basic things that should be kept in mind while writing test class.


The use of Unit Test in AX, take a look here:

  • David Pokluda's blog
  • Axaptapedia

What conditions do you need to cover? Well, depends, but you should probably aim high on test coverage.

Assertions are conditions you would consider true like:

this.assertEquals(10, 7+3);

Usually you would test variable or return values.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜