Troubleshooting Smart Device Unit Tests
This topic helps you identify and resolve some issues related to smart device unit tests.
'Assembly reference not resolved'
This error appears in the Output window when you generate smart device unit tests from the Create Unit Tests dialog box. The unit test generator fails because the code under test contains a method signature that references types that the unit test generator cannot resolve. The following is an example of the error:
While trying to generate your tests, the following errors occurred:
The following error was encountered while reading module 'Microsoft.WindowsMobile.Status': Assembly reference not resolved: Microsoft.WindowsMobile.Utilities, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
The unit test generator cannot resolve the following types:
Types in the Microsoft.WindowsMobile namespace that reference Microsoft.WindowsMobile.Utilities
To generate a unit test, temporarily comment out the method and all methods whose signatures contain the types that cannot be resolved. After generating tests, remove the comments from the code under test and manually author unit tests. For more information, see How to: Create and Run a Unit Test.