How to run the unit module tests?

The unit module tests for Decision Architect leverage the Microsoft Visual Studio testing framework. Select the TEST -> Windows -> Test Explorer menu item in Visual Studio to view and operate on the test set. Press the Run All link to execute all of the available tests.

When deployed as an add-in, Decision Architect provides the callback EA_OnInitializeTechnologies to load the Decision Architect MDG into the runtime context. For the unit module tests this callback is not invoked and the MDG must be loaded by other means. The simplest approach is to copy DecisionArchitectMDG.xml into Program Files/Sparx Systems/EA/MDGTechnologies (create the directory if it does not exist). Restarting Enterprise Architect will deploy the MDG.

Follow these steps if the example EA model gets corrupted or needs to be refreshed.
Follow these steps to add more tests to the DecisionArchitectTests project.
Current test manifest:

EATests - uses example EA model as a resource
EA_ConfirmMDG - verify Decision Architect MDG has been installed manually
EAConnectorTests - exercise EAFacade connector API
EA_ConnectorTests - IEAConnector properties and operations
EADiagramTests - exercise EAFacade diagram API
EA_DiagramTests - IEADiagram properties and operations
EAElementTests - exercise EAFacade element API
EA_ElementTests - IEAElement properties and operations
EAPackageTests - exercise EAFacade package API
EA_PackageTests - IEAPackage properties and operations
EAFacadeTests - exercise methods used by Decision Architect
EA_UpdateRepositoryTest - ensure the Repository singleton is initialized
EA_WrapElement_eventPropertiesTest - create an object that adds instance properties to a diagram object element with the ID specified in the event properties
EA_WrapElement_elementTest - create an object that adds instance properties to a package element
EA_WrapConnectorTest - create an object that adds instance properties to a diagram connector
EA_WrapVolatileConnectorTest - create an object that adds instance properties to a diagram connector with the ID specified in the event properties
EA_WrapVolatileDiagramTest - create an object that holds the diagram ID specified in the event properties
EA_WrapVolatileElement_elementTest - create an object that adds instance properties to a package element with the ID specified in the event properties
EA_WrapVolatileElement_diagramTest - create an object that adds instance properties to a package diagram with the ID specified in the event properties