Writing your own Test unit

Writing your own Test unit is very important, not just to test your code but also to give you an eagle's-eye view on how your code is actually interacting with the system. It gives your coding a meaning, and allows others to understand and relate to your development. Writing a unit test involves basically four steps as shown in the following diagram:

Writing your own Test unit

We first set up our data, or create the records that we will be testing later, using some statements. A statement might be an error message, value checking, confirmation, and others. After we get the statement in exercise, we verify our result with the result that is intended ...

Get Mastering Microsoft Dynamics NAV 2016 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.