Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

UITests with localized resources (using ResX)

$
0
0

In my Forms application I'm using localised resources using ResX files. Works fine.

However, in my UITests project, how do I compare strings that are localised?

How do I modify the following line of code to compare with the localised string instead of the static one ("Try clicking the button...") defined here?

static readonly Func<AppQuery, AppQuery> InitialMessage = c => c.Marked("labelTest").Text("Try clicking the button...");

I tried accessing the AppResources (AppName.AppResources.LabelTestText), but as the generated AppResources.Designer.cs class is defined internal, as are all of its properties, it is not accessible from the UITests project.

Any ideas?


Viewing all articles
Browse latest Browse all 58056

Trending Articles