Forum Xamarin Test Cloud (Read Only)
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Is there a way to get the App selected language or culture when running UITests

We am currently adding localization throughout an app that we are using and have haven't had any big problems with displaying differing UI depending on the culture.
When attempting to update the tests I haven't been able to find a way to get the culture of the app/system from within the test (for formatting money to check against selection).

I've tried using CultureInfo.CurrentCulture, Thread.CurrentCulture and the more verbose forms of Thread culture info (both default and UIThread).

Does anyone know of how to do this or if it is even possible?

Answers

Sign In or Register to comment.