Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition
by Simon Buxton
How it works...
Most of the code we wrote is relatively straightforward, but it can be a little verbose. The normal pattern for writing tests is to write them as the main code is written, starting with blank methods for the acceptance criteria specified in the technical requirements augmented with other tests that seem necessary. Often, we write tests in order to debug the code we are writing, which can easily be done by choosing Debug selected tests.
There are a few points that need explaining, the first being the way data is handled. When a test case is run, it uses a partition to segregate the data it creates and will tear it down once the test has completed. This occurs for each test. We must not assume an order in which the tests are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access