Testing Windows Store Features

Testing all the functionality exposed by CurrentApp presents a chicken-and-egg problem. When you write a new app that uses these APIs, they will fail because the app has no listing in the Windows Store. For example, if you try to test an in-app purchase in a new app, you’ll likely see the dialog shown in Figure 8.3.

Image

FIGURE 8.3 The CurrentApp class is not suitable for testing Windows Store interactions because the Windows Store doesn’t know anything about it.

Even if you add calls to these APIs to a new version of an already listed app, you’re always one step behind the live metadata. Furthermore, it can be difficult ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.