Setting Up General Parameters For Test Suggestions

To open test suggestion settings:

  1. In Visual Studio, click on Typemock menu and select Options...

  2. Select Test Suggestions

  3. Click on Solution Settings

To set up automatic test suggestion:

Typemock Suggested Unit Tests Settings form:

  1. In the Folder field, specify the name of the folder where automatically suggested tests should be saved.

  2. In the Project Name field, specify the name the test project that Suggest will create.[Project] is the name of the project under test.

  3. In the Typemock dlls field, specify the way by which will be updated Typemock dlls:

    • From Nuget Package: Typemock reference assemblies will be downloaded via Nuget Package Manager.

    • Copy to Subdirectory: Typemock assemblies will be stored in the supdirectory, which name you can specify.

  4. In the Dll Subdirectory field, specify the name for the Typemock referenced assemblies, if you choose to copy them to the subdirectory prevoiusly.

  5. In the Namespace Prefix field, specify the prefix that should be added to the namespace of the automatically suggested tests.

  6. In the File Name field, specify the pattern for the file name where automatically suggested tests should be saved.

  7. In the Class Name, specify the pattern for the names of test classes.

  8. In the Method Name, specify the pattern for the names of test methods.

  9. Check the Add InternalsVisibleTo attribute to referenced projects check box, when you want to add an assembly attribute to the projects under test that allows these test projects to use the APIs defined as internal scope.

  10. Check the Allow calling private methods from test check box, to allow private methods to be called directly from the test.

  11. In the Unit testing framework drop-down list, select your unit testing framework.

  12. Click Ok.