Tag: AOT

Unit Testing X++ code in Visual Studio (AX 2012) [EN]

I'm pretty sure everybody who has tried will agree with me that the Unit Testing framework included in the AX 2012 development environment (aka MorphX) has some limitations. Sometimes such limits become so impacting that makes the framework almost useless when the code you need to test starts growing (let's discuss design problems in a separate post :)). But I'm not going to talk here about limitations, but about what we actually can do, and one of such things is to use X++ proxy classes to write our unit tests in Visual Studio, and use the native testing framework included here with all its possibilities. Let's see how it works with an easy example. I wrote this simple X++ class in order to have something to test:
(más…)