2 types derived from TestObject
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
TestCase.cs (1)
20public sealed class TestCase : TestObject
TestResult.cs (1)
20public sealed class TestResult : TestObject
50 references to TestObject
Microsoft.TestPlatform.CommunicationUtilities (45)
_generated\112\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (1)
258if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject))
_generated\57\TestPlatformJsonContext.TestCase.g.cs (6)
247DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject), 249Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject)obj).Properties, 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), 268DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject), 270Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject)obj).Traits, 278AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Traits", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TraitCollection), global::System.Array.Empty<global::System.Type>(), null),
_generated\59\TestPlatformJsonContext.TestObject.g.cs (18)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject>? _TestObject; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject> TestObject 22get => _TestObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject> Create_TestObject(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject> 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject), 60Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject)obj).Properties, 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), 79DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject), 81Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject)obj).Traits, 89AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Traits", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TraitCollection), global::System.Array.Empty<global::System.Type>(), null), 100private void TestObjectSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject? value) 111IEnumerableTestPropertySerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject)value).Properties); 113TraitCollectionSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject)value).Traits);
_generated\65\TestPlatformJsonContext.TestResult.g.cs (7)
302DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject), 304Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject)obj).Properties, 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), 323DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject), 325Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject)obj).Traits, 333AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Traits", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TraitCollection), global::System.Array.Empty<global::System.Type>(), null), 373TraitCollectionSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject)value).Traits);
Serialization\TestCaseConverter.cs (1)
91testProperty = TestProperty.Register(testProperty.Id, testProperty.Label, testProperty.GetValueType(), testProperty.Attributes, typeof(TestObject));
Serialization\TestCaseConverterV2.cs (1)
67testProperty = TestProperty.Register(testProperty.Id, testProperty.Label, testProperty.GetValueType(), testProperty.Attributes, typeof(TestObject));
Serialization\TestObjectBaseConverter.cs (6)
18/// Converter factory for <see cref="TestObject"/>-derived types that don't have their own 33return typeToConvert == typeof(TestObject); 42internal class TestObjectBaseConverter : JsonConverter<TestObject> 46return typeToConvert == typeof(TestObject); 49public override TestObject? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 99public override void Write(Utf8JsonWriter writer, TestObject value, JsonSerializerOptions options)
Serialization\TestObjectConverter.cs (1)
16/// JSON converter for the <see cref="TestObject"/> and derived entities.
Serialization\TestPropertyConverter.cs (1)
59testProperty = TestProperty.Register(id, label, category ?? string.Empty, description ?? string.Empty, resolvedType, null, attributes, typeof(TestObject));
Serialization\TestResultConverter.cs (1)
103testProperty = TestProperty.Register(testProperty.Id, testProperty.Label, testProperty.GetValueType(), testProperty.Attributes, typeof(TestObject));
Serialization\TestResultConverterV2.cs (1)
96testProperty = TestProperty.Register(testProperty.Id, testProperty.Label, testProperty.GetValueType(), testProperty.Attributes, typeof(TestObject));
TestPlatformJsonContext.cs (1)
53[JsonSerializable(typeof(TestObject))]
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
TestObject.cs (1)
55typeof(TestObject));
TestProperty\TestProperty.cs (1)
387typeof(TestObject));
TraitCollection.cs (3)
26typeof(TestObject)); 29private readonly TestObject _testObject; 31internal TraitCollection(TestObject testObject)