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