piku
piku

Reputation: 613

How to write Unit Tests

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

  1. What are the conditions that i need to cover
  2. What are asserts.

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

Upvotes: 0

Views: 666

Answers (1)

Jan B. Kjeldsen
Jan B. Kjeldsen

Reputation: 18051

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

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.

Upvotes: 2

Related Questions