PowerDesigner provides a UnitTest.NET extended model definition to generate unit test files.
Verify that the current model has the target language C# 2.0 or Visual Basic 2005, and includes an extended model definition for either ADO.NET, ADO.NET CF, or Nhibernate.
Select Model > Extended Model Definitions, and click the Import tool.
Click the Unit Test sub-tab, select the UnitTest.NET or UnitTest.NET CFxem, and click OK to attach it to your model.
Click OK to close the List of Extended Model Definitions and return to your model.
Note:
You can also attach an XEM at model creation time by clicking the Select Extensions button on the New Model dialog.