Automated Testing

You’ve seen how CurrentAppSimulator simulates initial Windows Store-related data, but it also simulates interactions with the Windows Store. For example, when you initiate a purchase with CurrentAppSimulator, it launches a purchase dialog geared toward testing, as shown in Figure 8.4. This replaces the real purchase dialog shown (in an error state) in Figure 8.3.

Image

FIGURE 8.4 The purchase dialog shown by CurrentAppSimulator may be ugly, but it gets the job done.

The dialog shown in Figure 8.4 corresponds to the user attempting to purchase a LevelPack1 product. Besides cancelling the purchase with the Cancel button, you can decide ...

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.