How to write Unit Tests
Can anyone assist me in writing Unit Tests in AX. Points like
- What are the conditions that i nee开发者_如何学Cd to cover
- 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.
精彩评论