Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

Troubleshooting Smart Device Unit Tests

Visual Studio 2008

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=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.

The unit test generator cannot resolve the following types:

  • ICustomMarshaler

  • 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.