Various issues with testing metro style api libraries via vs2012 test framework.
-
Tuesday, August 07, 2012 6:16 AM
I have created a unit test project to test a set of libraries that were modified to support metro style apps. Notice that I'm NOT testing a metro style app, just the libraries. Is this even supported?
My project compiles properly but running it triggers an error related to the unit test project not configured to be a start up project. I have created an empty app and referenced the unit test app but this is not what I had in mind when setting up this project. Please advice.
Also, when i try debugging my test case I get a crash, related to the executor and memory corruption. Has anyone has any information on this?
All Replies
-
Tuesday, August 07, 2012 10:31 AM
You have to use the Unit Test Library for Metro Style Apps (this is found under the Metro Style Apps node in New Project Wizard), if you are using any of the WinRT API.
This project template enables your test code to run under the app container used for all WinRT API.
- Marked As Answer by Amanda ZhuMicrosoft Contingent Staff, Moderator Friday, August 24, 2012 3:34 AM
-
Wednesday, August 08, 2012 12:26 PMModerator
Hi nanay3,
Thank you for posting in the MSDN forum.
Is Mathew's suggestion helpful to you? What about your problem now?
You wrote "when i try debugging my test case i get a crash, related to the executor and memory corruption".
About this issue, can you provide some detailed information?
Best regards,
Amanda
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

