Detecting phone v. simulator during a test run

I'm writing mobile tests with UITest against a Xamarin app. I have a small set of test cases that require interaction with the camera. I can code around these steps when using a simulator but I haven't been able to determine the difference between phone and simulator in the test.

Trying to access Xamarin.UITest.iOS.iOSDevice.IsSimulator in the test.

Any help?

Sign In or Register to comment.