I'm trying to set the date picker in iOS. It appears this can be accomplished using the "Xamarin.UITest.IApp.Invoke(String methodName, Object argument)" method, where "methodName" would be "setDate". I believe the actual call would be
app.Query(e => e.Class("UIPickerView").Invoke("setDate",date,"animated",true));
The problem I'm having is with the "date" parameter. This parameter is supposed to be a "NSDate" object representing the new date to display in the date picker.
Can anyone suggest a solution on how to create a "NSDate" object in UITest?