English 中文(简体)
Cannot run unit tests for an application developed with Compact Framework for Windows CE 6.0 platform
原标题:

I m developing a solution for Windows CE 6.0 using GuD_AtomKit X86 Device emulator. I m not able to run any unit tests, because I get following error message:

The test adapter ( Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ) required to execute this test could not be loaded. Check that the test adapter is installed properly. Exception of type Microsoft.VisualStudio.SmartDevice.TestHostAdapter.DeviceAgent.TestAlreadyRunningException was thrown.

But there s no unit test running on the device.

I would really appreciate your help.

最佳回答

That was probably caused by a hardware issue. After I updated the flash with the board I was running the test against, it started to work again. So probably a bug in the firmware of the board... :(

问题回答

Did you change the target device in your testrunconfig file? Running against the target device is definitely supported.

You also might have to manually deploy the CF to the device as the Unit Test framework doesn t auto-deploy it.





相关问题
How would you refactor this bit of code?

This bit of code runs on Windows Compact Framework and what it does is obvious. It looks as it should be refactored (especially considering that I may want to add cmd.ExecuteResultSet() later), but I ...

Using maps on Windows Mobile

I m experimenting with maps on different mobile platforms. Getting Google Maps to work on Android was easy, following this tutorial. Getting the same to work on Windows Mobile is a different matter. ...

Upload file to server in Windows mobile C# project

We have a setup of server and windows mobile device as a client. In server CSI script ready to accept single file from client. In Desktop we have use WebClient.UploadFile method to upload file to ...

Custom listview control for windows mobile in c#

I need to develop a custom listview control (ie, i need two labels and a progress bar in each list item) . I am new to windows mobile so please help me with code samples.

sending USSD in C#?

I want to write a simple c# application runs on windows mobile 6 which can send USSD messages Is there any library that could help me in doing this?? or is there any examples that explains how to ...

Do mobile phones have a Server : Port Scheme ?

I am new to mobile phone programming, find networking very interesting, and have this question: Does a phone running Windows Mobile or other OS s have Server:Port scheme, and what are the ports? ...

compact framework 2.0 detecting enter key in a textbox

I am developing a small app for a Motorola 9090-G using .net compact framework 2.0. My problem is that I can t seem to detect an enter keypress in a textbox. How do you detect an enter keypress in a ...

热门标签