Implemented interface member:
property
Instance
System.ComponentModel.ITypeDescriptorContext.Instance
36 writes to Instance
WindowsBase.Tests (36)
System\Windows\Input\ModifierKeysConverterTests.cs (36)
26
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= new object() }, null, false };
27
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= new object() }, typeof(object), false };
28
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= new object() }, typeof(string), false };
29
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= new object() }, typeof(InstanceDescriptor), false };
30
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= new object() }, typeof(Key), false };
31
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= new object() }, typeof(ModifierKeys), false };
32
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.None }, null, false };
33
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.None }, typeof(object), false };
34
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.None }, typeof(string), true };
35
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.None }, typeof(InstanceDescriptor), false };
36
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.None }, typeof(Key), false };
37
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.None }, typeof(ModifierKeys), false };
38
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control }, null, false };
39
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control }, typeof(object), false };
40
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control }, typeof(string), true };
41
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control }, typeof(InstanceDescriptor), false };
42
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control }, typeof(Key), false };
43
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control }, typeof(ModifierKeys), false };
44
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control | ModifierKeys.Alt | ModifierKeys.Windows | ModifierKeys.Shift }, null, false };
45
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control | ModifierKeys.Alt | ModifierKeys.Windows | ModifierKeys.Shift }, typeof(object), false };
46
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control | ModifierKeys.Alt | ModifierKeys.Windows | ModifierKeys.Shift }, typeof(string), true };
47
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control | ModifierKeys.Alt | ModifierKeys.Windows | ModifierKeys.Shift }, typeof(InstanceDescriptor), false };
48
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control | ModifierKeys.Alt | ModifierKeys.Windows | ModifierKeys.Shift }, typeof(Key), false };
49
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= ModifierKeys.Control | ModifierKeys.Alt | ModifierKeys.Windows | ModifierKeys.Shift }, typeof(ModifierKeys), false };
50
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)(-1) }, null, false };
51
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)(-1) }, typeof(object), false };
52
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)(-1) }, typeof(string), false };
53
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)(-1) }, typeof(InstanceDescriptor), false };
54
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)(-1) }, typeof(Key), false };
55
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)(-1) }, typeof(ModifierKeys), false };
56
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)0x10 }, null, false };
57
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)0x10 }, typeof(object), false };
58
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)0x10 }, typeof(string), false };
59
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)0x10 }, typeof(InstanceDescriptor), false };
60
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)0x10 }, typeof(Key), false };
61
yield return new object?[] { new CustomTypeDescriptorContext {
Instance
= (ModifierKeys)0x10 }, typeof(ModifierKeys), false };