Forum Xamarin Test Cloud (Read Only)


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET 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?


Sign In or Register to comment.