How to unit test a Windows 10 app in Visual Studio? -


how can unit test windows 10 app in visual studio 2015?

i created blank app universal windows project , added new unit test project solution, when try add reference uwp app in test project, error saying 'unable add reference project "project name"'.

enter image description here

right click on solution , choose add > new project. select unit test app (windows universal). make sure don't select unit test library or unit test project. must universal one. should generate base class work with.

you'll want add reference main project. this, right click on test project , select add > reference , choose main project. should able create classes main project test.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

php - How do you embed a video into a custom theme on WordPress? -