diff options
author | Eric Maupin <ermaup@microsoft.com> | 2018-06-27 01:03:17 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2018-07-19 00:20:55 +0300 |
commit | aebe4160983264c3e05ae0ce028fb8dd873235be (patch) | |
tree | 0ab61f5fdef84286234c0e1700355cc4a90318a7 /Xamarin.PropertyEditing.Tests | |
parent | 572cce14cab58109d8c4df08c924c7cc1fa1ad92 (diff) |
[Core] GetPropertiesForTypeAsync
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) { |