diff options
Diffstat (limited to 'Xamarin.PropertyEditing.Tests')
-rw-r--r-- | Xamarin.PropertyEditing.Tests/MockEditorProvider.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Xamarin.PropertyEditing.Tests/MockEditorProvider.cs b/Xamarin.PropertyEditing.Tests/MockEditorProvider.cs index 0efc429..5aed81a 100644 --- a/Xamarin.PropertyEditing.Tests/MockEditorProvider.cs +++ b/Xamarin.PropertyEditing.Tests/MockEditorProvider.cs @@ -21,6 +21,13 @@ namespace Xamarin.PropertyEditing.Tests return Task.FromResult (editor); } + public async Task<IReadOnlyCollection<IPropertyInfo>> GetPropertiesForTypeAsync (ITypeInfo type) + { + object obj = await CreateObjectAsync (type).ConfigureAwait (false); + IObjectEditor editor = ChooseEditor (obj); + return editor.Properties; + } + IObjectEditor ChooseEditor (object item) { switch (item) { |