4 instantiations of TestCase
Microsoft.TestPlatform.CommunicationUtilities (4)
_generated\57\TestPlatformJsonContext.TestCase.g.cs (1)
31
ObjectCreator = () => new global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
(),
Serialization\TestCaseConverter.cs (1)
23
var testCase = new
TestCase
();
Serialization\TestCaseConverterV2.cs (1)
24
var testCase = new
TestCase
();
Serialization\TestObjectBaseConverter.cs (1)
58
var testObject = new
TestCase
();
434 references to TestCase
Microsoft.TestPlatform.CommunicationUtilities (178)
_generated\112\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (6)
86
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>))
90
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>))
250
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
))
254
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
[]))
358
if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>))
390
if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>))
_generated\16\TestPlatformJsonContext.PayloadedMessageIEnumerableTestCase.g.cs (20)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>>? _PayloadedMessageIEnumerableTestCase;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>> PayloadedMessageIEnumerableTestCase
22
get => _PayloadedMessageIEnumerableTestCase ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>> Create_PayloadedMessageIEnumerableTestCase(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>>
31
ObjectCreator = () => new global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>(),
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>>(options, objectInfo);
53
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>
58
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>),
60
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>)obj).Payload,
61
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>)obj).Payload = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>), global::System.Array.Empty<global::System.Type>(), null),
71
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>(options, info0);
78
private void PayloadedMessageIEnumerableTestCaseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>? value)
89
IEnumerableTestCaseSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>)value).Payload);
_generated\17\TestPlatformJsonContext.PayloadedMessageListTestCase.g.cs (20)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>>? _PayloadedMessageListTestCase;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>> PayloadedMessageListTestCase
22
get => _PayloadedMessageListTestCase ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>> Create_PayloadedMessageListTestCase(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>>
31
ObjectCreator = () => new global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>(),
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>>(options, objectInfo);
53
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>
58
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>),
60
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>)obj).Payload,
61
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>)obj).Payload = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>), global::System.Array.Empty<global::System.Type>(), null),
71
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>(options, info0);
78
private void PayloadedMessageListTestCaseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>? value)
89
ListTestCaseSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>)value).Payload);
_generated\22\TestPlatformJsonContext.DiscoveryCompletePayload.g.cs (3)
73
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>
88
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetProperty("LastDiscoveredTests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>), global::System.Array.Empty<global::System.Type>(), null),
91
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>(options, info1);
_generated\28\TestPlatformJsonContext.TestRunStatsPayload.g.cs (3)
73
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>
88
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunStatsPayload).GetProperty("InProgressTestCases", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>), global::System.Array.Empty<global::System.Type>(), null),
91
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>(options, info1);
_generated\47\TestPlatformJsonContext.TestRunChangedEventArgs.g.cs (6)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics)args[0], (global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult>)args[1], (global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>)args[2]),
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics), typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult>), typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>)}, modifiers: null),
93
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>
108
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs).GetProperty("ActiveTests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>), global::System.Array.Empty<global::System.Type>(), null),
111
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>(options, info2);
163
ParameterType = typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>),
_generated\49\TestPlatformJsonContext.TestRunCriteria.g.cs (3)
93
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>
108
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("Tests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>), global::System.Array.Empty<global::System.Type>(), null),
111
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>(options, info2);
_generated\50\TestPlatformJsonContext.TestRunRequestPayload.g.cs (3)
73
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>
88
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload).GetProperty("TestCases", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>), global::System.Array.Empty<global::System.Type>(), null),
91
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>(options, info1);
_generated\57\TestPlatformJsonContext.TestCase.g.cs (45)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>? _TestCase;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
> TestCase
22
get => _TestCase ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
> Create_TestCase(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
),
60
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).LocalExtensionData,
61
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).LocalExtensionData = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
).GetProperty("LocalExtensionData", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
),
80
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).Id,
81
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).Id = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::System.Guid), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
),
100
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).FullyQualifiedName,
101
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).FullyQualifiedName = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
).GetProperty("FullyQualifiedName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
120
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
),
122
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).DisplayName,
123
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).DisplayName = value!,
130
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
142
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
),
144
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).ExecutorUri,
145
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).ExecutorUri = value!,
152
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
).GetProperty("ExecutorUri", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
164
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
),
166
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).Source,
167
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).Source = value!,
174
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
).GetProperty("Source", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
186
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
),
188
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).CodeFilePath,
189
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).CodeFilePath = value!,
196
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
).GetProperty("CodeFilePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
206
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
),
208
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).LineNumber,
209
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).LineNumber = value!,
216
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
).GetProperty("LineNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
226
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
),
228
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)obj).Properties,
236
AttributeProviderFactory = 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),
_generated\58\TestPlatformJsonContext.TestCaseArray.g.cs (10)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
[]>? _TestCaseArray;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
[]> TestCaseArray
22
get => _TestCaseArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
[]>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
[]));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
[]> Create_TestCaseArray(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
[]> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
[]>
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>(options, info);
47
private void TestCaseArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
[]? value)
_generated\65\TestPlatformJsonContext.TestResult.g.cs (6)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)args[0]),
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
)}, modifiers: null),
53
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>
68
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("TestCase", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
), global::System.Array.Empty<global::System.Type>(), null),
71
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>(options, info0);
383
ParameterType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
),
_generated\84\TestPlatformJsonContext.IEnumerableTestCase.g.cs (12)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>? _IEnumerableTestCase;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>> IEnumerableTestCase
22
get => _IEnumerableTestCase ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>> Create_IEnumerableTestCase(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>(options, info);
47
private void IEnumerableTestCaseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>? value)
57
foreach (global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
element in value)
_generated\92\TestPlatformJsonContext.ListTestCase.g.cs (12)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>? _ListTestCase;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>> ListTestCase
22
get => _ListTestCase ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>> Create_ListTestCase(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>
31
ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>(),
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>(options, info);
47
private void ListTestCaseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>? value)
EventHandlers\TestDiscoveryEventHandler.cs (2)
33
public void HandleDiscoveredTests(IEnumerable<
TestCase
>? discoveredTestCases)
44
public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<
TestCase
>? lastChunk)
Interfaces\ITestRequestHandler.cs (2)
52
void SendTestCases(IEnumerable<
TestCase
>? discoveredTestCases);
81
void DiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<
TestCase
>? lastChunk);
Messages\DiscoveryCompletePayload.cs (1)
23
public IEnumerable<
TestCase
>? LastDiscoveredTests { get; set; }
Messages\TestRunStatsPayload.cs (1)
24
public IEnumerable<
TestCase
>? InProgressTestCases { get; set; }
ObjectModel\TestRunCriteriaWithTests.cs (2)
33
public TestRunCriteriaWithTests(IEnumerable<
TestCase
> tests, string? package, string? runSettings, TestExecutionContext testExecutionContext)
44
public IEnumerable<
TestCase
> Tests { get; private set; }
Serialization\TestCaseConverter.cs (4)
18
internal class TestCaseConverter : JsonConverter<
TestCase
>
21
public override
TestCase
? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
23
var
testCase = new TestCase();
101
public override void Write(Utf8JsonWriter writer,
TestCase
value, JsonSerializerOptions options)
Serialization\TestCaseConverterV2.cs (4)
19
internal class TestCaseConverterV2 : JsonConverter<
TestCase
>
22
public override
TestCase
? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
24
var
testCase = new TestCase();
76
public override void Write(Utf8JsonWriter writer,
TestCase
value, JsonSerializerOptions options)
Serialization\TestObjectBaseConverter.cs (1)
58
var
testObject = new TestCase();
Serialization\TestResultConverter.cs (2)
27
var
testCase = StjSafe.Deserialize<
TestCase
>(testCaseElement, options)!;
Serialization\TestResultConverterV2.cs (2)
30
var
testCase = StjSafe.Deserialize<
TestCase
>(testCaseElement, options)!;
Serialization\TestRunChangedEventArgsConverter.cs (1)
35
var activeTests = DeserializeProperty<IEnumerable<
TestCase
>>(root, "ActiveTests", options);
TestPlatformJsonContext.cs (6)
50
[JsonSerializable(typeof(
TestCase
))]
56
[JsonSerializable(typeof(IEnumerable<
TestCase
>))]
57
[JsonSerializable(typeof(List<
TestCase
>))]
58
[JsonSerializable(typeof(
TestCase
[]))]
116
[JsonSerializable(typeof(JsonDataSerializer.PayloadedMessage<IEnumerable<
TestCase
>>))]
117
[JsonSerializable(typeof(JsonDataSerializer.PayloadedMessage<List<
TestCase
>>))]
TestRequestSender.cs (1)
630
var testCases = _dataSerializer.DeserializePayload<IEnumerable<
TestCase
>>(data);
Microsoft.TestPlatform.CrossPlatEngine (78)
Adapter\TestExecutionRecorder.cs (3)
69
public void RecordStart(
TestCase
testCase)
114
public void RecordEnd(
TestCase
testCase, TestOutcome outcome)
126
private void SendTestCaseEnd(
TestCase
testCase, TestOutcome outcome)
Client\Parallel\DiscoveryDataAggregator.cs (2)
230
public string? MarkSourcesBasedOnDiscoveredTestCases(string? previousSource, IEnumerable<
TestCase
>? testCases)
246
foreach (
var
testCase in testCases)
Client\Parallel\ParallelDiscoveryEventsHandler.cs (2)
56
public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<
TestCase
>? lastChunk)
184
public void HandleDiscoveredTests(IEnumerable<
TestCase
>? discoveredTestCases)
Client\Parallel\ParallelProxyDiscoveryManager.cs (1)
148
public bool HandlePartialDiscoveryComplete(IProxyDiscoveryManager proxyDiscoveryManager, long totalTests, IEnumerable<
TestCase
>? lastChunk, bool isAborted)
Client\Parallel\ParallelProxyExecutionManager.cs (5)
250
Dictionary<string,
TestCase
[]> sourceToTestCasesMap = testRunCriteria.Tests.GroupBy(t => t.Source).ToDictionary(k => k.Key, v => v.ToArray());
260
List<
TestCase
[]> testCaseBatches;
282
var groups = new List<List<
TestCase
>>();
285
groups.Add(new List<
TestCase
>());
342
TestRunCriteria CreateTestRunCriteriaFromTestCasesAndSettings(IEnumerable<
TestCase
> testCases, TestRunCriteria criteria, string? runsettingsXml)
Client\ProxyDiscoveryManager.cs (3)
227
HandleDiscoveryComplete(discoveryCompleteEventsArgs, new List<
TestCase
>());
296
public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<
TestCase
>? lastChunk)
318
public void HandleDiscoveredTests(IEnumerable<
TestCase
>? discoveredTestCases)
Client\TestRunCriteriaExtensions.cs (1)
41
foreach (
var
tc in testRunCriteria.Tests)
DataCollection\InProcDataCollectionExtensionManager.cs (1)
302
var 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\DiscoveryManager.cs (3)
224
private void OnReportTestCases(ICollection<
TestCase
> testCases)
329
private static void UpdateTestCases(IEnumerable<
TestCase
> testCases, string? package)
335
foreach (
var
tc in testCases)
Discovery\DiscoveryResultCache.cs (7)
39
private List<
TestCase
> _tests;
63
_tests = new List<
TestCase
>();
70
public delegate void OnReportTestCases(ICollection<
TestCase
> tests);
75
public IList<
TestCase
> Tests
80
return new List<
TestCase
>(_tests);
93
public void AddTest(
TestCase
test)
115
_tests = new List<
TestCase
>();
Discovery\TestCaseDiscoverySink.cs (1)
29
public void SendTestCase(
TestCase
discoveredTest)
EventHandlers\IPathConverter.cs (4)
19
TestCase
UpdateTestCase(
TestCase
testCase, PathConversionDirection updateDirection);
21
IEnumerable<
TestCase
> UpdateTestCases(IEnumerable<
TestCase
>? testCases, PathConversionDirection updateDirection);
EventHandlers\NullPathConverter.cs (4)
32
TestCase
IPathConverter.UpdateTestCase(
TestCase
testCase, PathConversionDirection _) => testCase;
34
IEnumerable<
TestCase
> IPathConverter.UpdateTestCases(IEnumerable<
TestCase
>? testCases, PathConversionDirection _) => testCases!;
EventHandlers\PathConverter.cs (4)
78
public
TestCase
UpdateTestCase(
TestCase
testCase, PathConversionDirection updateDirection)
86
public IEnumerable<
TestCase
> UpdateTestCases(IEnumerable<
TestCase
>? testCases, PathConversionDirection updateDirection)
EventHandlers\TestCaseEventsHandler.cs (2)
38
public void SendTestCaseStart(
TestCase
testCase)
44
public void SendTestCaseEnd(
TestCase
testCase, TestOutcome outcome)
EventHandlers\TestRequestHandler.cs (2)
185
public void SendTestCases(IEnumerable<
TestCase
>? discoveredTestCases)
246
public void DiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<
TestCase
>? lastChunk)
Execution\BaseRunTests.cs (9)
650
private void OnCacheHit(TestRunStatistics testRunStats, ICollection<TestResult> results, ICollection<
TestCase
>? inProgressTestCases)
690
ICollection<
TestCase
>? inProgressTestCases,
692
out ICollection<
TestCase
>? updatedInProgressTestCases)
715
private ICollection<
TestCase
>? UpdateInProgressTests(ICollection<
TestCase
>? inProgressTestCases, string? package)
722
ICollection<
TestCase
> updatedTestCases = new List<
TestCase
>();
723
foreach (
var
inProgressTestCase in inProgressTestCases)
725
var
updatedTestCase = _dataSerializer.Clone(inProgressTestCase);
Execution\ExecutionManager.cs (1)
136
IEnumerable<
TestCase
> tests,
Execution\RunTestsWithTests.cs (10)
22
private readonly IEnumerable<
TestCase
> _testCases;
25
private Dictionary<Tuple<Uri, string>, List<
TestCase
>>? _executorUriVsTestList;
27
public RunTestsWithTests(IRequestData requestData, IEnumerable<
TestCase
> testCases, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler)
43
internal RunTestsWithTests(IRequestData requestData, IEnumerable<
TestCase
> testCases, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler, Dictionary<Tuple<Uri, string>, List<
TestCase
>>? executorUriVsTestList)
117
private static Dictionary<Tuple<Uri, string>, List<
TestCase
>> GetExecutorVsTestCaseList(IEnumerable<
TestCase
> tests)
119
var result = new Dictionary<Tuple<Uri, string>, List<
TestCase
>>();
120
foreach (
var
test in tests)
128
if (result.TryGetValue(executorUriExtensionTuple, out List<
TestCase
>? testList))
Execution\TestRunCache.cs (8)
63
private ICollection<
TestCase
> _inProgressTests;
96
_inProgressTests = new Collection<
TestCase
>();
107
internal delegate void OnCacheHit(TestRunStatistics testRunStats, ICollection<TestResult> results, ICollection<
TestCase
> inProgressTests);
126
public ICollection<
TestCase
> InProgressTests
186
public void OnTestStarted(
TestCase
testCase)
232
public bool OnTestCompletion(
TestCase
? completedTest)
255
var
inProgressTest = _inProgressTests.FirstOrDefault(inProgress => inProgress.Id == completedTest.Id);
341
_inProgressTests = new Collection<
TestCase
>();
Interfaces\ITestRunCache.cs (3)
19
ICollection<
TestCase
> InProgressTests { get; }
26
void OnTestStarted(
TestCase
testCase);
30
bool OnTestCompletion(
TestCase
completedTest);
Utilities\TestSourcesUtility.cs (2)
35
internal static IEnumerable<string>? GetSources(IEnumerable<
TestCase
>? tests)
56
internal static string? GetDefaultCodebasePath(IEnumerable<
TestCase
> tests)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameTestObject.cs (1)
47
public BlameTestObject(
TestCase
testCase)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (78)
DiscoveryEventsHandleConverter.cs (2)
55
public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<
TestCase
>? lastChunk)
64
public void HandleDiscoveredTests(IEnumerable<
TestCase
>? discoveredTestCases)
Interfaces\ITestSession.cs (6)
114
IEnumerable<
TestCase
> testCases,
128
IEnumerable<
TestCase
> testCases,
144
IEnumerable<
TestCase
> testCases,
211
IEnumerable<
TestCase
> testCases,
227
IEnumerable<
TestCase
> testCases,
245
IEnumerable<
TestCase
> testCases,
Interfaces\ITestSessionAsync.cs (6)
110
IEnumerable<
TestCase
> testCases,
124
IEnumerable<
TestCase
> testCases,
140
IEnumerable<
TestCase
> testCases,
207
IEnumerable<
TestCase
> testCases,
223
IEnumerable<
TestCase
> testCases,
241
IEnumerable<
TestCase
> testCases,
Interfaces\ITranslationLayerRequestSender.cs (2)
92
IEnumerable<
TestCase
> testCases,
131
IEnumerable<
TestCase
> testCases,
Interfaces\ITranslationLayerRequestSenderAsync.cs (4)
60
/// IEnumerable{
TestCase
},
68
IEnumerable<
TestCase
> testCases,
98
/// IEnumerable{
TestCase
},
107
IEnumerable<
TestCase
> testCases,
Interfaces\IVsTestConsoleWrapper.cs (8)
226
IEnumerable<
TestCase
> testCases,
239
IEnumerable<
TestCase
> testCases,
254
IEnumerable<
TestCase
> testCases,
271
IEnumerable<
TestCase
> testCases,
355
IEnumerable<
TestCase
> testCases,
370
IEnumerable<
TestCase
> testCases,
387
IEnumerable<
TestCase
> testCases,
406
IEnumerable<
TestCase
> testCases,
Interfaces\IVsTestConsoleWrapperAsync.cs (16)
222
/// IEnumerable{
TestCase
},
228
IEnumerable<
TestCase
> testCases,
235
/// IEnumerable{
TestCase
},
242
IEnumerable<
TestCase
> testCases,
250
/// IEnumerable{
TestCase
},
258
IEnumerable<
TestCase
> testCases,
267
/// IEnumerable{
TestCase
},
276
IEnumerable<
TestCase
> testCases,
358
/// IEnumerable{
TestCase
},
365
IEnumerable<
TestCase
> testCases,
373
/// IEnumerable{
TestCase
},
381
IEnumerable<
TestCase
> testCases,
390
/// IEnumerable{
TestCase
},
399
IEnumerable<
TestCase
> testCases,
409
/// IEnumerable{
TestCase
},
419
IEnumerable<
TestCase
> testCases,
TestSession.cs (12)
188
IEnumerable<
TestCase
> testCases,
202
IEnumerable<
TestCase
> testCases,
217
IEnumerable<
TestCase
> testCases,
289
IEnumerable<
TestCase
> testCases,
305
IEnumerable<
TestCase
> testCases,
323
IEnumerable<
TestCase
> testCases,
463
IEnumerable<
TestCase
> testCases,
477
IEnumerable<
TestCase
> testCases,
493
IEnumerable<
TestCase
> testCases,
565
IEnumerable<
TestCase
> testCases,
581
IEnumerable<
TestCase
> testCases,
599
IEnumerable<
TestCase
> testCases,
VsTestConsoleRequestSender.cs (6)
254
IEnumerable<
TestCase
> testCases,
279
IEnumerable<
TestCase
> testCases,
358
IEnumerable<
TestCase
> testCases,
385
IEnumerable<
TestCase
> testCases,
974
.DeserializePayload<IEnumerable<
TestCase
>>(message);
1066
.DeserializePayload<IEnumerable<
TestCase
>>(message);
VsTestConsoleWrapper.cs (16)
412
IEnumerable<
TestCase
> testCases,
425
IEnumerable<
TestCase
> testCases,
440
IEnumerable<
TestCase
> testCases,
457
IEnumerable<
TestCase
> testCases,
562
IEnumerable<
TestCase
> testCases,
577
IEnumerable<
TestCase
> testCases,
594
IEnumerable<
TestCase
> testCases,
613
IEnumerable<
TestCase
> testCases,
919
IEnumerable<
TestCase
> testCases,
932
IEnumerable<
TestCase
> testCases,
947
IEnumerable<
TestCase
> testCases,
964
IEnumerable<
TestCase
> testCases,
1069
IEnumerable<
TestCase
> testCases,
1084
IEnumerable<
TestCase
> testCases,
1101
IEnumerable<
TestCase
> testCases,
1120
IEnumerable<
TestCase
> testCases,
Microsoft.VisualStudio.TestPlatform.Client (3)
Discovery\DiscoveryRequest.cs (2)
220
public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<
TestCase
>? lastChunk)
310
public void HandleDiscoveredTests(IEnumerable<
TestCase
>? discoveredTestCases)
Execution\TestRunRequest.cs (1)
474
foreach (
TestCase
testCase in testRunChangedArgs.ActiveTests)
Microsoft.VisualStudio.TestPlatform.Common (13)
ExtensionDecorators\SerialTestRunDecorator.cs (6)
26
public void RunTests(IEnumerable<
TestCase
>? tests, IRunContext? runContext, IFrameworkHandle? frameworkHandle)
36
foreach (
TestCase
testToRun in tests)
39
OriginalTestExecutor.RunTests(new List<
TestCase
> { testToRun }, runContext, new SerializeTestRunDecoratorFrameworkHandle(frameworkHandle!, _runSequentialEvent));
73
public bool ShouldAttachToTestHost(IEnumerable<
TestCase
>? tests, IRunContext runContext)
124
public void RecordEnd(
TestCase
testCase, TestOutcome outcome)
133
public void RecordStart(
TestCase
testCase)
ExtensionDecorators\SerialTestRunDecoratorFrameworkHandle.cs (2)
34
public void RecordEnd(
TestCase
testCase, TestOutcome outcome)
43
public void RecordStart(
TestCase
testCase)
Interfaces\Engine\ClientProtocol\IParallelProxyDiscoveryManager.cs (1)
30
IEnumerable<
TestCase
>? lastChunk,
Interfaces\Engine\ITestCaseEventsHandler.cs (2)
17
void SendTestCaseStart(
TestCase
testCase);
24
void SendTestCaseEnd(
TestCase
testCase, TestOutcome outcome);
Interfaces\Engine\TesthostProtocol\IExecutionManager.cs (1)
47
void StartTestRun(IEnumerable<
TestCase
> tests, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEvents, IInternalTestRunEventsHandler eventHandler);
src\vstest\src\Microsoft.TestPlatform.Filter.Source\TestCaseFilterExpression.cs (1)
82
public bool MatchTestCase(
TestCase
testCase, Func<string, object?> propertyValueProvider)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (7)
TrxLogger.cs (2)
500
TestCase
testCase = rsTestResult.TestCase;
684
TestCase
testCase = rockSteadyTestResult.TestCase;
Utility\Converter.cs (5)
56
TestCase
rockSteadyTestCase)
274
public static List<string> GetCustomPropertyValueFromTestCase(
TestCase
testCase, string categoryId)
293
public static Guid GetTestId(
TestCase
rockSteadyTestCase)
559
private static int GetPriority(
TestCase
rockSteadyTestCase)
575
private static string GetOwner(
TestCase
rockSteadyTestCase)
Microsoft.VisualStudio.TestPlatform.ObjectModel (50)
Adapter\Interfaces\ITestCaseDiscoverySink.cs (1)
16
void SendTestCase(
TestCase
discoveredTest);
Adapter\Interfaces\ITestCaseFilterExpression.cs (1)
21
bool MatchTestCase(
TestCase
testCase, Func<string, object?> propertyValueProvider);
Adapter\Interfaces\ITestExecutionRecorder.cs (2)
29
void RecordStart(
TestCase
testCase);
37
void RecordEnd(
TestCase
testCase, TestOutcome outcome);
Adapter\Interfaces\ITestExecutor.cs (1)
23
void RunTests(IEnumerable<
TestCase
>? tests, IRunContext? runContext, IFrameworkHandle? frameworkHandle);
Adapter\Interfaces\ITestExecutor2.cs (1)
37
bool ShouldAttachToTestHost(IEnumerable<
TestCase
>? tests, IRunContext runContext);
Client\Events\DiscoveredTestsEventArgs.cs (2)
14
public DiscoveredTestsEventArgs(IEnumerable<
TestCase
>? discoveredTestCases)
21
public IEnumerable<
TestCase
>? DiscoveredTestCases { get; private set; }
Client\Events\TestRunChangedEventArgs.cs (2)
22
public TestRunChangedEventArgs(ITestRunStatistics? stats, IEnumerable<TestResult>? newTestResults, IEnumerable<
TestCase
>? activeTests)
45
public IEnumerable<
TestCase
>? ActiveTests { get; private set; }
Client\Interfaces\ITestDiscoveryEventsHandler.cs (2)
19
void HandleDiscoveryComplete(long totalTests, IEnumerable<
TestCase
>? lastChunk, bool isAborted);
26
void HandleDiscoveredTests(IEnumerable<
TestCase
>? discoveredTestCases);
Client\Interfaces\ITestDiscoveryEventsHandler2.cs (2)
18
void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<
TestCase
>? lastChunk);
24
void HandleDiscoveredTests(IEnumerable<
TestCase
>? discoveredTestCases);
Client\Interfaces\ITestRunConfiguration.cs (1)
38
IEnumerable<
TestCase
>? Tests { get; }
Client\Payloads\TestRunRequestPayload.cs (1)
32
public List<
TestCase
>? TestCases { get; set; }
Client\TestRunCriteria.cs (10)
314
IEnumerable<
TestCase
> tests,
333
IEnumerable<
TestCase
> tests,
355
IEnumerable<
TestCase
> tests,
382
IEnumerable<
TestCase
> tests,
403
public TestRunCriteria(IEnumerable<
TestCase
> tests, BaseTestRunCriteria baseTestRunCriteria)
406
var testCases = tests as IList<
TestCase
> ?? tests.ToList();
429
IEnumerable<
TestCase
> tests,
468
IEnumerable<
TestCase
> tests,
483
var testCases = tests as IList<
TestCase
> ?? tests?.ToList();
520
public IEnumerable<
TestCase
>? Tests { get; private set; }
DataCollector\DataCollectionContext.cs (3)
36
public DataCollectionContext(
TestCase
? testCase)
71
protected internal DataCollectionContext(SessionId sessionId,
TestCase
testCase)
81
public
TestCase
? TestCase { get; private set; }
DataCollector\Events\TestCaseEvents.cs (6)
65
TestCase
testElement)
119
public
TestCase
? TestElement
146
public TestCaseStartEventArgs(
TestCase
testElement) : this(new DataCollectionContext(new SessionId(Guid.Empty)), testElement)
162
TestCase
testElement)
227
public TestCaseEndEventArgs(
TestCase
testElement, TestOutcome testOutcome) : this(new DataCollectionContext(new SessionId(Guid.Empty)), testElement, testOutcome)
246
TestCase
testElement,
DataCollector\InProcDataCollector\TestCaseStartArgs.cs (2)
17
public TestCaseStartArgs(
TestCase
? testCase)
25
public
TestCase
? TestCase { get; private set; }
TestCase.cs (11)
29
/// Initializes a new instance of the <see cref="
TestCase
"/> class.
41
/// Initializes a new instance of the <see cref="
TestCase
"/> class.
293
private 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
));
294
private 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
));
333
public static readonly TestProperty Id = TestProperty.Register("TestCase.Id", IdLabel, string.Empty, string.Empty, typeof(Guid), ValidateGuid, TestPropertyAttributes.Hidden, typeof(
TestCase
));
334
public static readonly TestProperty FullyQualifiedName = TestProperty.Register("TestCase.FullyQualifiedName", FullyQualifiedNameLabel, string.Empty, string.Empty, typeof(string), ValidateName, TestPropertyAttributes.Hidden, typeof(
TestCase
));
335
public static readonly TestProperty DisplayName = TestProperty.Register("TestCase.DisplayName", NameLabel, string.Empty, string.Empty, typeof(string), ValidateDisplay, TestPropertyAttributes.None, typeof(
TestCase
));
336
public static readonly TestProperty ExecutorUri = TestProperty.Register("TestCase.ExecutorUri", ExecutorUriLabel, string.Empty, string.Empty, typeof(Uri), ValidateExecutorUri, TestPropertyAttributes.Hidden, typeof(
TestCase
));
337
public static readonly TestProperty Source = TestProperty.Register("TestCase.Source", SourceLabel, typeof(string), typeof(
TestCase
));
338
public static readonly TestProperty CodeFilePath = TestProperty.Register("TestCase.CodeFilePath", FilePathLabel, typeof(string), typeof(
TestCase
));
339
public static readonly TestProperty LineNumber = TestProperty.Register("TestCase.LineNumber", LineNumberLabel, typeof(int), TestPropertyAttributes.Hidden, typeof(
TestCase
));
TestResult.cs (2)
26
public TestResult(
TestCase
testCase)
42
public
TestCase
TestCase { get; private set; }
vstest.console (13)
Internal\ConsoleLogger.cs (1)
928
public
TestCase
TestCase { get; }
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (8)
257
public static IEnumerable<
TestCase
> FilterTests(IEnumerable<
TestCase
> testCases)
261
List<
TestCase
> filteredList;
300
private static List<
TestCase
> GetFilteredTestCases(IEnumerable<
TestCase
> testCases)
302
var filteredList = new List<
TestCase
>();
310
foreach (
var
testCase in testCases)
330
private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(
TestCase
testCase)
Processors\ListTestsArgumentProcessor.cs (1)
221
foreach (
var
test in args.DiscoveredTestCases!)
Processors\RunSpecificTestsArgumentProcessor.cs (2)
105
private readonly Collection<
TestCase
> _selectedTestCases = new();
282
foreach (
var
testCase in args.DiscoveredTestCases!)
TestPlatformHelpers\TestRequestManager.cs (1)
1557
foreach (
var
testCase in testRunRequestPayload.TestCases)
vstest.console.arm64 (13)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
928
public
TestCase
TestCase { get; }
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (8)
257
public static IEnumerable<
TestCase
> FilterTests(IEnumerable<
TestCase
> testCases)
261
List<
TestCase
> filteredList;
300
private static List<
TestCase
> GetFilteredTestCases(IEnumerable<
TestCase
> testCases)
302
var filteredList = new List<
TestCase
>();
310
foreach (
var
testCase in testCases)
330
private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(
TestCase
testCase)
src\vstest\src\vstest.console\Processors\ListTestsArgumentProcessor.cs (1)
221
foreach (
var
test in args.DiscoveredTestCases!)
src\vstest\src\vstest.console\Processors\RunSpecificTestsArgumentProcessor.cs (2)
105
private readonly Collection<
TestCase
> _selectedTestCases = new();
282
foreach (
var
testCase in args.DiscoveredTestCases!)
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (1)
1557
foreach (
var
testCase in testRunRequestPayload.TestCases)