1 instantiation of TestProperty
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
TestProperty\TestProperty.cs (1)
347result = new TestProperty(id, label, category, description, valueType, validateValueCallback, attributes);
261 references to TestProperty
Microsoft.TestPlatform.CommunicationUtilities (143)
Generated\361d1da7f942c932\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (4)
242if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)) 330if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>)) 350if (type == typeof(global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>)) 362if (type == typeof(global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>))
Generated\361d1da7f942c932\TestPlatformJsonContext.IEnumerableTestProperty.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>>? _IEnumerableTestProperty; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>> IEnumerableTestProperty 22get => _IEnumerableTestProperty ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>> Create_IEnumerableTestProperty(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>(options, info); 47private void IEnumerableTestPropertySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>? value) 57foreach (global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty element in value)
Generated\361d1da7f942c932\TestPlatformJsonContext.KeyValuePairTestPropertyObject.g.cs (23)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>? _KeyValuePairTestPropertyObject; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>> KeyValuePairTestPropertyObject 22get => _KeyValuePairTestPropertyObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>> Create_KeyValuePairTestPropertyObject(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>> 32ObjectWithParameterizedConstructorCreator = static args => new global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)args[0], (object)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty), typeof(object)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>(options, objectInfo); 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty> 58DeclaringType = typeof(global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>), 60Getter = static obj => ((global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>)obj).Key, 68AttributeProviderFactory = static () => typeof(global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>).GetProperty("Key", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>(options, info0); 78DeclaringType = typeof(global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>), 80Getter = static obj => ((global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>)obj).Value, 88AttributeProviderFactory = static () => typeof(global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null), 101ParameterType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty),
Generated\361d1da7f942c932\TestPlatformJsonContext.ListKeyValuePairTestPropertyObject.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>>? _ListKeyValuePairTestPropertyObject; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>> ListKeyValuePairTestPropertyObject 22get => _ListKeyValuePairTestPropertyObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>> Create_ListKeyValuePairTestPropertyObject(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>> 31ObjectCreator = () => new global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>(), 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>, global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>(options, info); 47private void ListKeyValuePairTestPropertyObjectSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>? value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestPlatformJsonContext.TestCase.g.cs (6)
221var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>> 236AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>), global::System.Array.Empty<global::System.Type>(), null), 239properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>>(options, info8); 242var info9 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>> 257AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>), global::System.Array.Empty<global::System.Type>(), null), 260properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>>(options, info9);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestPlatformJsonContext.TestObject.g.cs (3)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>> 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>>(options, info0);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestPlatformJsonContext.TestProperty.g.cs (44)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>? _TestProperty; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty> TestProperty 22get => _TestProperty ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty> Create_TestProperty(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty> 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty), 60Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).Id, 61Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).Id = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 80DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty), 82Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).Label, 83Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).Label = value!, 90AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("Label", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 102DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty), 104Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).Category, 105Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).Category = value!, 112AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("Category", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 124DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty), 126Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).Description, 127Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).Description = value!, 134AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 146DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty), 148Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).ValidateValueCallback, 156AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("ValidateValueCallback", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.ValidateValueCallback), global::System.Array.Empty<global::System.Type>(), null), 166DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty), 168Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).Attributes, 169Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).Attributes = value!, 176AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("Attributes", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPropertyAttributes), global::System.Array.Empty<global::System.Type>(), null), 186DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty), 188Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).ValueType, 189Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)obj).ValueType = value!, 196AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("ValueType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 208private void TestPropertySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty? value) 218writer.WriteString(PropName_Id, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)value).Id); 219writer.WriteString(PropName_Label, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)value).Label); 220writer.WriteString(PropName_Category, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)value).Category); 221writer.WriteString(PropName_Description, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)value).Description); 223global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)value).ValidateValueCallback, ValidateValueCallback); 225global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)value).Attributes, TestPropertyAttributes); 226writer.WriteString(PropName_ValueType, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty)value).ValueType);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestPlatformJsonContext.TestResult.g.cs (6)
276var info11 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>> 291AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>), global::System.Array.Empty<global::System.Type>(), null), 294properties[11] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>>(options, info11); 297var info12 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>> 312AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>), global::System.Array.Empty<global::System.Type>(), null), 315properties[12] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>>(options, info12);
Serialization\TestCaseConverter.cs (4)
42var testProperty = StjSafe.Deserialize<TestProperty>(keyElement, options); 91testProperty = TestProperty.Register(testProperty.Id, testProperty.Label, testProperty.GetValueType(), testProperty.Attributes, typeof(TestObject)); 163private static void WriteProperty(Utf8JsonWriter writer, TestProperty property, JsonSerializerOptions options)
Serialization\TestCaseConverterV2.cs (3)
52var testProperty = StjSafe.Deserialize<TestProperty>(keyElement, options); 67testProperty = TestProperty.Register(testProperty.Id, testProperty.Label, testProperty.GetValueType(), testProperty.Attributes, typeof(TestObject));
Serialization\TestObjectBaseConverter.cs (2)
73var testProperty = StjSafe.Deserialize<TestProperty>(keyElement, options);
Serialization\TestObjectConverter.cs (7)
18internal class TestObjectConverter : JsonConverter<List<KeyValuePair<TestProperty, object>>> 21public override List<KeyValuePair<TestProperty, object>>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 23var propertyList = new List<KeyValuePair<TestProperty, object>>(); 44var testProperty = StjSafe.Deserialize<TestProperty>(keyElement, options); 64propertyList.Add(new KeyValuePair<TestProperty, object>(testProperty, propertyData!)); 71public override void Write(Utf8JsonWriter writer, List<KeyValuePair<TestProperty, object>> value, JsonSerializerOptions options)
Serialization\TestPropertyConverter.cs (8)
15/// JSON converter for <see cref="TestProperty"/> that serializes only the data-member properties 16/// and skips the <see cref="TestProperty.ValidateValueCallback"/> delegate which cannot be serialized. 18internal class TestPropertyConverter : JsonConverter<TestProperty> 21public override TestProperty? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 45var testProperty = TestProperty.Find(id); 59testProperty = TestProperty.Register(id, label, category ?? string.Empty, description ?? string.Empty, resolvedType, null, attributes, typeof(TestObject)); 71public override void Write(Utf8JsonWriter writer, TestProperty value, JsonSerializerOptions options)
Serialization\TestResultConverter.cs (4)
63var testProperty = StjSafe.Deserialize<TestProperty>(property.GetProperty("Key"), options)!; 103testProperty = TestProperty.Register(testProperty.Id, testProperty.Label, testProperty.GetValueType(), testProperty.Attributes, typeof(TestObject)); 188private static void WriteProperty(Utf8JsonWriter writer, TestProperty property, JsonSerializerOptions options)
Serialization\TestResultConverterV2.cs (3)
83var testProperty = StjSafe.Deserialize<TestProperty>(keyElement, options)!; 96testProperty = TestProperty.Register(testProperty.Id, testProperty.Label, testProperty.GetValueType(), testProperty.Attributes, typeof(TestObject));
TestPlatformJsonContext.cs (2)
51[JsonSerializable(typeof(TestProperty))] 59[JsonSerializable(typeof(List<KeyValuePair<TestProperty, object>>))]
Microsoft.TestPlatform.CrossPlatEngine (7)
DataCollection\InProcDataCollectionExtensionManager.cs (2)
305var testProperty = TestProperty.Register(id: keyValuePair.Key, label: keyValuePair.Key, category: string.Empty, description: string.Empty, valueType: typeof(string), validateValueCallback: null, attributes: TestPropertyAttributes.None, owner: typeof(TestCase));
Discovery\DiscoveryContext.cs (1)
34public ITestCaseFilterExpression? GetTestCaseFilter(IEnumerable<string>? supportedProperties, Func<string, TestProperty?> propertyProvider)
Execution\MSTestV1TelemetryHelper.cs (4)
14private static TestProperty? s_testTypeProperty; 15private static TestProperty? s_extensionIdProperty; 40s_testTypeProperty ??= TestProperty.Register("TestType", "TestType", typeof(Guid), typeof(TestResult)); 42s_extensionIdProperty ??= TestProperty.Register("ExtensionId", "ExtensionId", typeof(string), typeof(TestResult));
Microsoft.VisualStudio.TestPlatform.Common (6)
src\vstest\src\Microsoft.TestPlatform.Filter.Source\Condition.cs (3)
257internal bool ValidForProperties(IEnumerable<string> properties, Func<string, TestProperty?>? propertyProvider) 280private bool ValidForContainsOperation(Func<string, TestProperty?>? propertyProvider) 290TestProperty? testProperty = propertyProvider(Name);
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FilterExpression.cs (1)
141internal string[]? ValidForProperties(IEnumerable<string>? properties, Func<string, TestProperty?>? propertyProvider)
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FilterExpressionWrapper.cs (1)
136public string[]? ValidForProperties(IEnumerable<string>? supportedProperties, Func<string, TestProperty?>? propertyProvider)
src\vstest\src\Microsoft.TestPlatform.Filter.Source\TestCaseFilterExpression.cs (1)
61public string[]? ValidForProperties(IEnumerable<string>? supportedProperties, Func<string, TestProperty?> propertyProvider)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (8)
Constants.cs (6)
62public static readonly TestProperty ExecutionIdProperty = TestProperty.Register("ExecutionId", ExecutionIdPropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(TestResult)); 64public static readonly TestProperty ParentExecIdProperty = TestProperty.Register("ParentExecId", ParentExecutionIdPropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(TestResult)); 66public static readonly TestProperty TestTypeProperty = TestProperty.Register("TestType", TestTypePropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(TestResult));
HtmlLogger.cs (2)
384var parentExecutionIdProperty = testResult.Properties.FirstOrDefault(property => 398var executionIdProperty = testResult.Properties.FirstOrDefault(property =>
Microsoft.VisualStudio.TestPlatform.Extensions.TestIds.TestLogger (1)
TestIdsLogger.cs (1)
251foreach (TestProperty property in testCase.Properties)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (11)
Utility\Constants.cs (6)
113public static readonly TestProperty ExecutionIdProperty = TestProperty.Register("ExecutionId", ExecutionIdPropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(ObjectModel.TestResult)); 114public static readonly TestProperty ParentExecIdProperty = TestProperty.Register("ParentExecId", ParentExecutionIdPropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(ObjectModel.TestResult)); 115public static readonly TestProperty TestTypeProperty = TestProperty.Register("TestType", TestTypePropertyIdentifier, typeof(Guid), TestPropertyAttributes.Hidden, typeof(ObjectModel.TestResult));
Utility\Converter.cs (5)
276var customProperty = testCase.Properties.FirstOrDefault(t => t.Id.Equals(categoryId)); 298TestProperty? tmiTestIdProperty = rockSteadyTestCase.Properties.FirstOrDefault( 319TestProperty? parentExecutionIdProperty = testResult.Properties.FirstOrDefault( 334TestProperty? executionIdProperty = testResult.Properties.FirstOrDefault( 355TestProperty? testTypeProperty = testResult.Properties.FirstOrDefault(property => property.Id.Equals(Constants.TestTypePropertyIdentifier));
Microsoft.VisualStudio.TestPlatform.ObjectModel (79)
Adapter\Interfaces\IRunContext.cs (1)
39ITestCaseFilterExpression? GetTestCaseFilter(IEnumerable<string>? supportedProperties, Func<string, TestProperty?> propertyProvider);
TestCase.cs (23)
187public override IEnumerable<TestProperty> Properties 263private void SetPropertyAndResetId<T>(TestProperty property, T value) 273protected override object? ProtectedGetPropertyValue(TestProperty property, object? defaultValue) 293protected override void ProtectedSetPropertyValue(TestProperty property, object? value) 343private static readonly TestProperty ManagedTypeProperty = TestProperty.Register("TestCase.ManagedType", "ManagedType", string.Empty, string.Empty, typeof(string), o => !StringUtils.IsNullOrWhiteSpace(o as string), TestPropertyAttributes.Hidden, typeof(TestCase)); 344private static readonly TestProperty ManagedMethodProperty = TestProperty.Register("TestCase.ManagedMethod", "ManagedMethod", string.Empty, string.Empty, typeof(string), o => !StringUtils.IsNullOrWhiteSpace(o as string), TestPropertyAttributes.Hidden, typeof(TestCase)); 383public static readonly TestProperty Id = TestProperty.Register("TestCase.Id", IdLabel, string.Empty, string.Empty, typeof(Guid), ValidateGuid, TestPropertyAttributes.Hidden, typeof(TestCase)); 384public static readonly TestProperty FullyQualifiedName = TestProperty.Register("TestCase.FullyQualifiedName", FullyQualifiedNameLabel, string.Empty, string.Empty, typeof(string), ValidateName, TestPropertyAttributes.Hidden, typeof(TestCase)); 385public static readonly TestProperty DisplayName = TestProperty.Register("TestCase.DisplayName", NameLabel, string.Empty, string.Empty, typeof(string), ValidateDisplay, TestPropertyAttributes.None, typeof(TestCase)); 386public static readonly TestProperty ExecutorUri = TestProperty.Register("TestCase.ExecutorUri", ExecutorUriLabel, string.Empty, string.Empty, typeof(Uri), ValidateExecutorUri, TestPropertyAttributes.Hidden, typeof(TestCase)); 387public static readonly TestProperty Source = TestProperty.Register("TestCase.Source", SourceLabel, typeof(string), typeof(TestCase)); 388public static readonly TestProperty CodeFilePath = TestProperty.Register("TestCase.CodeFilePath", FilePathLabel, typeof(string), typeof(TestCase)); 389public static readonly TestProperty LineNumber = TestProperty.Register("TestCase.LineNumber", LineNumberLabel, typeof(int), TestPropertyAttributes.Hidden, typeof(TestCase)); 391internal static TestProperty[] Properties { get; } =
TestObject.cs (18)
29private readonly ConcurrentDictionary<TestProperty, object?> _store = new(); 37private List<KeyValuePair<TestProperty, object?>> StoreKeyValuePairs 47TestProperty.Register( 64public IEnumerable<KeyValuePair<TestProperty, object?>> GetProperties() 94public virtual IEnumerable<TestProperty> Properties 104public object? GetPropertyValue(TestProperty property) 126public T? GetPropertyValue<T>(TestProperty property, T? defaultValue) 137public void SetPropertyValue<T>(TestProperty property, T value) 148public void SetPropertyValue<T>(TestProperty property, LazyPropertyValue<T> value) 158public void SetPropertyValue(TestProperty property, object? value) 167public void RemovePropertyValue(TestProperty property) 178public T? GetPropertyValue<T>(TestProperty property, T? defaultValue, CultureInfo culture) 190public void SetPropertyValue<T>(TestProperty property, T value, CultureInfo culture) 202public void SetPropertyValue<T>(TestProperty property, LazyPropertyValue<T> value, CultureInfo culture) 216protected virtual object? ProtectedGetPropertyValue(TestProperty property, object? defaultValue) 230protected virtual void ProtectedSetPropertyValue(TestProperty property, object? value) 242private static object? ConvertPropertyFrom<T>(TestProperty property, CultureInfo culture, object? value) 295private static T? ConvertPropertyTo<T>(TestProperty property, CultureInfo culture, object? value)
TestProperty\TestProperty.cs (14)
18public class TestProperty : IEquatable<TestProperty> 29/// Initializes a new instance of the <see cref="TestProperty"/> class. 138return Equals(obj as TestProperty); 142public bool Equals(TestProperty? other) 255private static readonly Dictionary<string, KeyValuePair<TestProperty, HashSet<Type>>> Properties = new(); 270public static TestProperty? Find(string id) 274TestProperty? result = null; 287public static TestProperty Register(string id, string label, Type valueType, Type owner) 297public static TestProperty Register(string id, string label, Type valueType, TestPropertyAttributes attributes, Type owner) 307public static TestProperty Register(string id, string label, string category, string description, Type valueType, ValidateValueCallback? validateValueCallback, TestPropertyAttributes attributes, Type owner) 316TestProperty result; 350propertyTypePair = new KeyValuePair<TestProperty, HashSet<Type>>(result, new HashSet<Type>()); 361public static bool TryUnregister(string id, out KeyValuePair<TestProperty, HashSet<Type>> propertyTypePair) 378var registeredProperty = Find(Id);
TestResult.cs (20)
107public override IEnumerable<TestProperty> Properties 175protected override object? ProtectedGetPropertyValue(TestProperty property, object? defaultValue) 195protected override void ProtectedSetPropertyValue(TestProperty property, object? value) 289public static readonly TestProperty DisplayName = TestProperty.Register("TestResult.DisplayName", "TestResult Display Name", typeof(string), TestPropertyAttributes.Hidden, typeof(TestResult)); 290public static readonly TestProperty ComputerName = TestProperty.Register("TestResult.ComputerName", "Computer Name", typeof(string), TestPropertyAttributes.None, typeof(TestResult)); 291public static readonly TestProperty Outcome = TestProperty.Register("TestResult.Outcome", "Outcome", string.Empty, string.Empty, typeof(TestOutcome), ValidateOutcome, TestPropertyAttributes.None, typeof(TestResult)); 292public static readonly TestProperty Duration = TestProperty.Register("TestResult.Duration", "Duration", typeof(TimeSpan), typeof(TestResult)); 293public static readonly TestProperty StartTime = TestProperty.Register("TestResult.StartTime", "Start Time", typeof(DateTimeOffset), typeof(TestResult)); 294public static readonly TestProperty EndTime = TestProperty.Register("TestResult.EndTime", "End Time", typeof(DateTimeOffset), typeof(TestResult)); 295public static readonly TestProperty ErrorMessage = TestProperty.Register("TestResult.ErrorMessage", "Error Message", typeof(string), typeof(TestResult)); 296public static readonly TestProperty ErrorStackTrace = TestProperty.Register("TestResult.ErrorStackTrace", "Error Stack Trace", typeof(string), typeof(TestResult)); 322internal static TestProperty[] Properties { get; } =
TraitCollection.cs (3)
35private static readonly TestProperty TraitsProperty = TestProperty.Register( 83if (!_testObject.Properties.Contains(TraitsProperty, EqualityComparer<TestProperty>.Default))
vstest.console (3)
Internal\ConsoleLogger.cs (2)
392var parentExecutionIdProperty = testResult.Properties.FirstOrDefault(property => 406var executionIdProperty = testResult.Properties.FirstOrDefault(property =>
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
342foreach (var testProperty in testCase.Properties)
vstest.console.arm64 (3)
parent\vstest.console\Internal\ConsoleLogger.cs (2)
392var parentExecutionIdProperty = testResult.Properties.FirstOrDefault(property => 406var executionIdProperty = testResult.Properties.FirstOrDefault(property =>
parent\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
342foreach (var testProperty in testCase.Properties)