Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition

You're reading from  Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition

Product type Book
Published in Mar 2020
Publisher Packt
ISBN-13 9781838643812
Pages 534 pages
Edition 2nd Edition
Languages
Author (1):
Simon Buxton Simon Buxton
Profile icon Simon Buxton

Table of Contents (17) Chapters

Preface Starting a New Project Data Structures Creating the User Interface Working with Form Logic and Frameworks Application Extensibility Writing for Extensibility Advanced Data Handling Business Events Security Data Management, OData, and Office Consuming and Exposing Services Unit Testing Automated Build Management Workflow Development State Machines Other Books You May Enjoy

Creating a unit test case for code

In this recipe, we will create three test cases, starting with two simple tests to test the vehicle and vehicle table code and then a test case for the ConVehicleGroupChange class. These tests should test when it should fail and when it should succeed. This process will involve programmatically creating some test data in order to perform the tests.

Getting ready

We will just need the unit test project, which we created in the previous recipe, open. Also, on the main menu, select X64 from Test | Test Setting | Default Processor Architecture.

How to do it...

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}