5 instantiations of TestCase
Microsoft.TestPlatform.CommunicationUtilities (4)
_generated\49\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
();
Microsoft.TestPlatform.CrossPlatEngine (1)
Client\MTP\MtpTestNodeConverter.cs (1)
46
var testCase = new
TestCase
(fullyQualifiedName, new Uri(executorUri), source)
424 references to TestCase
Microsoft.TestPlatform.CommunicationUtilities (178)
_generated\104\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (6)
78
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>))
82
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>>))
218
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
))
222
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
[]))
326
if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>))
358
if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestCase
>))
_generated\14\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\15\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\20\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\26\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\39\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\41\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\42\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\49\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\50\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\57\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\76\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\84\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)
49
[JsonSerializable(typeof(
TestCase
))]
55
[JsonSerializable(typeof(IEnumerable<
TestCase
>))]
56
[JsonSerializable(typeof(List<
TestCase
>))]
57
[JsonSerializable(typeof(
TestCase
[]))]
111
[JsonSerializable(typeof(JsonDataSerializer.PayloadedMessage<IEnumerable<
TestCase
>>))]
112
[JsonSerializable(typeof(JsonDataSerializer.PayloadedMessage<List<
TestCase
>>))]
TestRequestSender.cs (1)
630
var testCases = _dataSerializer.DeserializePayload<IEnumerable<
TestCase
>>(data);
Microsoft.TestPlatform.CrossPlatEngine (92)
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\MTP\MtpDataCollectionForwarder.cs (1)
90
public void NotifyTestCaseStart(
TestCase
testCase)
Client\MTP\MtpProxyDiscoveryManager.cs (2)
87
var discovered = new List<
TestCase
>();
127
List<
TestCase
> chunk;
Client\MTP\MtpProxyExecutionManager.cs (5)
308
List<
TestCase
>? tests,
407
private static IEnumerable<(string Source, List<
TestCase
>? Tests)> BuildWork(TestRunCriteria criteria)
413
.Select(group => (group.Key, (List<
TestCase
>?)group.ToList()));
417
.Select(source => (source, (List<
TestCase
>?)null));
441
private static List<Dictionary<string, object?>> BuildTestsFilter(List<
TestCase
> tests)
Client\MTP\MtpTestNodeConverter.cs (6)
15
/// <see cref="
TestCase
"/> and <see cref="TestResult"/> instances.
28
typeof(
TestCase
));
40
public static
TestCase
ToTestCase(JsonObject node, string source)
46
var
testCase = new TestCase(fullyQualifiedName, new Uri(executorUri), source)
69
var
testCase = ToTestCase(node, source);
121
private static void AddTraits(JsonObject node,
TestCase
testCase)
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)
237
Dictionary<string,
TestCase
[]> sourceToTestCasesMap = testRunCriteria.Tests.GroupBy(t => t.Source).ToDictionary(k => k.Key, v => v.ToArray());
247
List<
TestCase
[]> testCaseBatches;
269
var groups = new List<List<
TestCase
>>();
272
groups.Add(new List<
TestCase
>());
329
TestRunCriteria CreateTestRunCriteriaFromTestCasesAndSettings(IEnumerable<
TestCase
> testCases, TestRunCriteria criteria, string? runsettingsXml)
Client\ProxyDiscoveryManager.cs (3)
193
HandleDiscoveryComplete(discoveryCompleteEventsArgs, new List<
TestCase
>());
247
public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<
TestCase
>? lastChunk)
269
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
>(InitialCapacity(cacheSize));
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
>(InitialCapacity(_cacheSize));
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)
36
TestCase
IPathConverter.UpdateTestCase(
TestCase
testCase, PathConversionDirection _) => testCase;
38
IEnumerable<
TestCase
> IPathConverter.UpdateTestCases(IEnumerable<
TestCase
>? testCases, PathConversionDirection _)
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)
672
private void OnCacheHit(TestRunStatistics testRunStats, ICollection<TestResult> results, ICollection<
TestCase
>? inProgressTestCases)
712
ICollection<
TestCase
>? inProgressTestCases,
714
out ICollection<
TestCase
>? updatedInProgressTestCases)
737
private ICollection<
TestCase
>? UpdateInProgressTests(ICollection<
TestCase
>? inProgressTestCases, string? package)
744
ICollection<
TestCase
> updatedTestCases = new List<
TestCase
>();
745
foreach (
var
inProgressTestCase in inProgressTestCases)
747
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)
62
private List<
TestCase
> _inProgressTests;
95
_inProgressTests = new List<
TestCase
>(InitialCapacity(cacheSize));
106
internal delegate void OnCacheHit(TestRunStatistics testRunStats, ICollection<TestResult> results, ICollection<
TestCase
> inProgressTests);
125
public ICollection<
TestCase
> InProgressTests
185
public void OnTestStarted(
TestCase
testCase)
231
public bool OnTestCompletion(
TestCase
? completedTest)
254
var
inProgressTest = _inProgressTests.FirstOrDefault(inProgress => inProgress.Id == completedTest.Id);
343
_inProgressTests = new List<
TestCase
>(InitialCapacity(_cacheSize));
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 (54)
DiscoveryEventsHandleConverter.cs (2)
55
public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<
TestCase
>? lastChunk)
64
public void HandleDiscoveredTests(IEnumerable<
TestCase
>? discoveredTestCases)
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)
146
IEnumerable<
TestCase
> testCases,
159
IEnumerable<
TestCase
> testCases,
174
IEnumerable<
TestCase
> testCases,
191
IEnumerable<
TestCase
> testCases,
275
IEnumerable<
TestCase
> testCases,
290
IEnumerable<
TestCase
> testCases,
307
IEnumerable<
TestCase
> testCases,
326
IEnumerable<
TestCase
> testCases,
Interfaces\IVsTestConsoleWrapperAsync.cs (16)
152
/// IEnumerable{
TestCase
},
158
IEnumerable<
TestCase
> testCases,
165
/// IEnumerable{
TestCase
},
172
IEnumerable<
TestCase
> testCases,
180
/// IEnumerable{
TestCase
},
188
IEnumerable<
TestCase
> testCases,
197
/// IEnumerable{
TestCase
},
206
IEnumerable<
TestCase
> testCases,
288
/// IEnumerable{
TestCase
},
295
IEnumerable<
TestCase
> testCases,
303
/// IEnumerable{
TestCase
},
311
IEnumerable<
TestCase
> testCases,
320
/// IEnumerable{
TestCase
},
329
IEnumerable<
TestCase
> testCases,
339
/// IEnumerable{
TestCase
},
349
IEnumerable<
TestCase
> testCases,
VsTestConsoleRequestSender.cs (6)
253
IEnumerable<
TestCase
> testCases,
278
IEnumerable<
TestCase
> testCases,
357
IEnumerable<
TestCase
> testCases,
384
IEnumerable<
TestCase
> testCases,
594
.DeserializePayload<IEnumerable<
TestCase
>>(message);
686
.DeserializePayload<IEnumerable<
TestCase
>>(message);
VsTestConsoleWrapper.cs (16)
325
IEnumerable<
TestCase
> testCases,
338
IEnumerable<
TestCase
> testCases,
353
IEnumerable<
TestCase
> testCases,
370
IEnumerable<
TestCase
> testCases,
475
IEnumerable<
TestCase
> testCases,
490
IEnumerable<
TestCase
> testCases,
507
IEnumerable<
TestCase
> testCases,
526
IEnumerable<
TestCase
> testCases,
746
IEnumerable<
TestCase
> testCases,
759
IEnumerable<
TestCase
> testCases,
774
IEnumerable<
TestCase
> testCases,
791
IEnumerable<
TestCase
> testCases,
896
IEnumerable<
TestCase
> testCases,
911
IEnumerable<
TestCase
> testCases,
928
IEnumerable<
TestCase
> testCases,
947
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)
74
protected internal DataCollectionContext(SessionId sessionId,
TestCase
testCase)
84
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)
939
public
TestCase
TestCase { get; }
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (8)
266
public static IEnumerable<
TestCase
> FilterTests(IEnumerable<
TestCase
> testCases)
270
List<
TestCase
> filteredList;
309
private static List<
TestCase
> GetFilteredTestCases(IEnumerable<
TestCase
> testCases)
311
var filteredList = new List<
TestCase
>();
319
foreach (
var
testCase in testCases)
339
private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(
TestCase
testCase)
Processors\ListTestsArgumentProcessor.cs (1)
230
foreach (
var
test in args.DiscoveredTestCases!)
Processors\RunSpecificTestsArgumentProcessor.cs (2)
114
private readonly Collection<
TestCase
> _selectedTestCases = new();
291
foreach (
var
testCase in args.DiscoveredTestCases!)
TestPlatformHelpers\TestRequestManager.cs (1)
1439
foreach (
var
testCase in testRunRequestPayload.TestCases)
vstest.console.arm64 (13)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
939
public
TestCase
TestCase { get; }
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (8)
266
public static IEnumerable<
TestCase
> FilterTests(IEnumerable<
TestCase
> testCases)
270
List<
TestCase
> filteredList;
309
private static List<
TestCase
> GetFilteredTestCases(IEnumerable<
TestCase
> testCases)
311
var filteredList = new List<
TestCase
>();
319
foreach (
var
testCase in testCases)
339
private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(
TestCase
testCase)
src\vstest\src\vstest.console\Processors\ListTestsArgumentProcessor.cs (1)
230
foreach (
var
test in args.DiscoveredTestCases!)
src\vstest\src\vstest.console\Processors\RunSpecificTestsArgumentProcessor.cs (2)
114
private readonly Collection<
TestCase
> _selectedTestCases = new();
291
foreach (
var
testCase in args.DiscoveredTestCases!)
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (1)
1439
foreach (
var
testCase in testRunRequestPayload.TestCases)