Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Maupin <ermaup@microsoft.com>2018-11-16 22:41:37 +0300
committerEric Maupin <ermaup@microsoft.com>2018-12-11 00:07:27 +0300
commiteb91db4af835dac36450c0c46f45684464e89164 (patch)
treea2819016b919cc0e993fc60803e4ebec309d48a7 /Xamarin.PropertyEditing.Tests
parent8c50952cd46f650a3c7341e727dead0461cfe0fe (diff)
[Tests] Make some properties uncommon
Diffstat (limited to 'Xamarin.PropertyEditing.Tests')
-rw-r--r--Xamarin.PropertyEditing.Tests/MockControls/MockControl.cs4
-rw-r--r--Xamarin.PropertyEditing.Tests/MockControls/MockSampleControl.cs4
2 files changed, 4 insertions, 4 deletions
diff --git a/Xamarin.PropertyEditing.Tests/MockControls/MockControl.cs b/Xamarin.PropertyEditing.Tests/MockControls/MockControl.cs
index 07859ef..66795a8 100644
--- a/Xamarin.PropertyEditing.Tests/MockControls/MockControl.cs
+++ b/Xamarin.PropertyEditing.Tests/MockControls/MockControl.cs
@@ -15,7 +15,7 @@ namespace Xamarin.PropertyEditing.Tests.MockControls
bool canWrite = true, bool flag = false,
IEnumerable<Type> converterTypes = null,
string description = null, bool constrained = true, ValueSources valueSources = ValueSources.Local | ValueSources.Default | ValueSources.Binding,
- IReadOnlyList<InputMode> inputModes = null, PropertyVariationOption[] options = null)
+ IReadOnlyList<InputMode> inputModes = null, PropertyVariationOption[] options = null, bool isUncommon = false)
{
IPropertyInfo propertyInfo;
if (typeof(T).IsEnum) {
@@ -26,7 +26,7 @@ namespace Xamarin.PropertyEditing.Tests.MockControls
} else if (inputModes != null) {
propertyInfo = new MockPropertyInfoWithInputTypes<T> (name, inputModes, description, category, canWrite, converterTypes, valueSources, options);
} else {
- propertyInfo = new MockPropertyInfo<T> (name, description, category, canWrite, converterTypes, valueSources, options);
+ propertyInfo = new MockPropertyInfo<T> (name, description, category, canWrite, converterTypes, valueSources, options, isUncommon);
}
AddProperty<T> (propertyInfo);
diff --git a/Xamarin.PropertyEditing.Tests/MockControls/MockSampleControl.cs b/Xamarin.PropertyEditing.Tests/MockControls/MockSampleControl.cs
index c724cc1..aa0f609 100644
--- a/Xamarin.PropertyEditing.Tests/MockControls/MockSampleControl.cs
+++ b/Xamarin.PropertyEditing.Tests/MockControls/MockSampleControl.cs
@@ -30,8 +30,8 @@ namespace Xamarin.PropertyEditing.Tests.MockControls
});
AddProperty<FlagsNoValues> ("FlagsNoValues", ReadWrite, canWrite: true, flag: true);
AddProperty<FlagsWithValues> ("FlagsWithValues", ReadWrite, canWrite: true, flag: true);
- AddProperty<CommonPoint> ("Point", ReadWrite);
- AddProperty<CommonSize> ("Size", ReadWrite);
+ AddProperty<CommonPoint> ("Point", ReadWrite, isUncommon: true);
+ AddProperty<CommonSize> ("Size", ReadWrite, isUncommon: true);
AddProperty<CommonRectangle> ("Rectangle", ReadWrite);
AddProperty<CommonRatio> ("Ratio", ReadWrite);
AddProperty<CommonThickness> ("Thickness", ReadWrite);