diff options
author | Eric Maupin <ermaup@microsoft.com> | 2018-05-15 22:06:33 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2018-07-19 00:20:55 +0300 |
commit | a72ff8da6433466246df6087949683c9167def67 (patch) | |
tree | 78190985804b8719c946e7a4e3693f4f0271117a /Xamarin.PropertyEditing.Tests | |
parent | b0dd38a9e7b6579444f6ea4da0a27170266f04ef (diff) |
[Core] Add known property/type APIs
Diffstat (limited to 'Xamarin.PropertyEditing.Tests')
-rw-r--r-- | Xamarin.PropertyEditing.Tests/MockEditorProvider.cs | 8 | ||||
-rw-r--r-- | Xamarin.PropertyEditing.Tests/MockObjectEditor.cs | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Tests/MockEditorProvider.cs b/Xamarin.PropertyEditing.Tests/MockEditorProvider.cs index 047f8e9..0efc429 100644 --- a/Xamarin.PropertyEditing.Tests/MockEditorProvider.cs +++ b/Xamarin.PropertyEditing.Tests/MockEditorProvider.cs @@ -42,6 +42,12 @@ namespace Xamarin.PropertyEditing.Tests return Task.FromResult (Activator.CreateInstance (realType)); } - private Dictionary<object, IObjectEditor> editorCache = new Dictionary<object, IObjectEditor> (); + public Task<IReadOnlyDictionary<Type, ITypeInfo>> GetKnownTypesAsync (IReadOnlyCollection<Type> knownTypes) + { + return Task.FromResult<IReadOnlyDictionary<Type, ITypeInfo>> (new Dictionary<Type, ITypeInfo> ()); + } + + + private readonly Dictionary<object, IObjectEditor> editorCache = new Dictionary<object, IObjectEditor> (); } }
\ No newline at end of file diff --git a/Xamarin.PropertyEditing.Tests/MockObjectEditor.cs b/Xamarin.PropertyEditing.Tests/MockObjectEditor.cs index fc1a1eb..8154b4f 100644 --- a/Xamarin.PropertyEditing.Tests/MockObjectEditor.cs +++ b/Xamarin.PropertyEditing.Tests/MockObjectEditor.cs @@ -84,6 +84,12 @@ namespace Xamarin.PropertyEditing.Tests set; } = new IPropertyInfo[0]; + public IReadOnlyDictionary<KnownProperty, IPropertyInfo> KnownProperties + { + get; + set; + } + public IReadOnlyCollection<IEventInfo> Events { get; |