To set the tag expression without using the UTF tag expressions editor, use the TagExpression
property of the UnitTestSettings
class, as shown in the following example:
public MainPage()
{
InitializeComponent();
UnitTestSettings settings = UnitTestSystem.CreateDefaultSettings();
settings.TagExpression = "ChatClientUITests";
Content = UnitTestSystem.CreateTestPage(settings);
}
Note
Unfortunately, the test harness does not allow you to programmatically change the Tag in the current version of the Windows Phone Toolkit UTF. Nonetheless, it is shown here in anticipation of a future release of the UTF.
3.15.3.136