I'm currenty unit testing a pcl which references System.Net.Http. The WP8 Unit test runs fine but the unit test for windows store crashes at "_httpClient.GetAsync(path).Result;" with the exception "TaskCanceledException".
If I call the function from the pcl from a normal app for windows store it works fine! And yes, the required capability "Internet" is set.
I would like to reuse my unit test code and don't have to write it twice for both plattforms. Has someone had a similar problem or knows whats going on?
Also trying to get a normal app for windows store to run unit tests doesn't seem to work. All tests crash with the message "Failed to activate Windows Store app unit test executor".
Thanks in advance!
Well it was an easy one. The unit test doesn't run in the UI thread while my normal code did. So using .Result created a deadlock where the ui thread was waiting on the ui thread. Very stupid error :/