5 instantiations of TestCase
Microsoft.TestPlatform.CommunicationUtilities (4)
_generated\49\TestPlatformJsonContext.TestCase.g.cs (1)
31ObjectCreator = () => new global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase(),
Serialization\TestCaseConverter.cs (1)
23var testCase = new TestCase();
Serialization\TestCaseConverterV2.cs (1)
24var testCase = new TestCase();
Serialization\TestObjectBaseConverter.cs (1)
58var testObject = new TestCase();
Microsoft.TestPlatform.CrossPlatEngine (1)
Client\MTP\MtpTestNodeConverter.cs (1)
46var testCase = new TestCase(fullyQualifiedName, new Uri(executorUri), source)
424 references to TestCase
Microsoft.TestPlatform.CommunicationUtilities (178)
_generated\104\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (6)
78if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)) 82if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)) 218if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)) 222if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase[])) 326if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>)) 358if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>))
_generated\14\TestPlatformJsonContext.PayloadedMessageIEnumerableTestCase.g.cs (20)
13private 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; 19public 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 22get => _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>>)); 25private 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) 27if (!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)) 29var 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>>> 31ObjectCreator = () => new global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>(), 35ConstructorAttributeProviderFactory = 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), 41jsonTypeInfo = 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); 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 58DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>), 60Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)obj).Payload, 61Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)obj).Payload = value!, 68AttributeProviderFactory = 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), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>(options, info0); 78private 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) 89IEnumerableTestCaseSerializeHandler(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)
13private 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; 19public 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 22get => _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>>)); 25private 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) 27if (!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)) 29var 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>>> 31ObjectCreator = () => new global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>(), 35ConstructorAttributeProviderFactory = 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), 41jsonTypeInfo = 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); 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 58DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>), 60Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)obj).Payload, 61Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)obj).Payload = value!, 68AttributeProviderFactory = 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), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>(options, info0); 78private 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) 89ListTestCaseSerializeHandler(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)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 88AttributeProviderFactory = 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), 91properties[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)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 88AttributeProviderFactory = 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), 91properties[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)
32ObjectWithParameterizedConstructorCreator = 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]), 35ConstructorAttributeProviderFactory = 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), 93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 108AttributeProviderFactory = 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), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>(options, info2); 163ParameterType = typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>),
_generated\41\TestPlatformJsonContext.TestRunCriteria.g.cs (3)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 108AttributeProviderFactory = 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), 111properties[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)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 88AttributeProviderFactory = 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), 91properties[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)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>? _TestCase; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase> TestCase 22get => _TestCase ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase> Create_TestCase(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase), 60Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).LocalExtensionData, 61Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).LocalExtensionData = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("LocalExtensionData", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase), 80Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).Id, 81Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).Id = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::System.Guid), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase), 100Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).FullyQualifiedName, 101Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).FullyQualifiedName = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("FullyQualifiedName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 120DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase), 122Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).DisplayName, 123Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).DisplayName = value!, 130AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 142DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase), 144Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).ExecutorUri, 145Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).ExecutorUri = value!, 152AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("ExecutorUri", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 164DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase), 166Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).Source, 167Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).Source = value!, 174AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("Source", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 186DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase), 188Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).CodeFilePath, 189Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).CodeFilePath = value!, 196AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("CodeFilePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 206DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase), 208Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).LineNumber, 209Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).LineNumber = value!, 216AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("LineNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 226DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase), 228Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)obj).Properties, 236AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>), global::System.Array.Empty<global::System.Type>(), null),
_generated\50\TestPlatformJsonContext.TestCaseArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase[]>? _TestCaseArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase[]> TestCaseArray 22get => _TestCaseArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase[]>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase[])); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase[]> Create_TestCaseArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase[]> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase[]> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>(options, info); 47private void TestCaseArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase[]? value)
_generated\57\TestPlatformJsonContext.TestResult.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)args[0]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase> 68AttributeProviderFactory = 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), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>(options, info0); 383ParameterType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase),
_generated\76\TestPlatformJsonContext.IEnumerableTestCase.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>? _IEnumerableTestCase; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> IEnumerableTestCase 22get => _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>)); 25private 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) 27if (!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)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 37jsonTypeInfo = 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); 47private void IEnumerableTestCaseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>? value) 57foreach (global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase element in value)
_generated\84\TestPlatformJsonContext.ListTestCase.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>? _ListTestCase; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> ListTestCase 22get => _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>)); 25private 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) 27if (!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)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>(), 37jsonTypeInfo = 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); 47private void ListTestCaseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>? value)
EventHandlers\TestDiscoveryEventHandler.cs (2)
33public void HandleDiscoveredTests(IEnumerable<TestCase>? discoveredTestCases) 44public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<TestCase>? lastChunk)
Interfaces\ITestRequestHandler.cs (2)
52void SendTestCases(IEnumerable<TestCase>? discoveredTestCases); 81void DiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<TestCase>? lastChunk);
Messages\DiscoveryCompletePayload.cs (1)
23public IEnumerable<TestCase>? LastDiscoveredTests { get; set; }
Messages\TestRunStatsPayload.cs (1)
24public IEnumerable<TestCase>? InProgressTestCases { get; set; }
ObjectModel\TestRunCriteriaWithTests.cs (2)
33public TestRunCriteriaWithTests(IEnumerable<TestCase> tests, string? package, string? runSettings, TestExecutionContext testExecutionContext) 44public IEnumerable<TestCase> Tests { get; private set; }
Serialization\TestCaseConverter.cs (4)
18internal class TestCaseConverter : JsonConverter<TestCase> 21public override TestCase? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 23var testCase = new TestCase(); 101public override void Write(Utf8JsonWriter writer, TestCase value, JsonSerializerOptions options)
Serialization\TestCaseConverterV2.cs (4)
19internal class TestCaseConverterV2 : JsonConverter<TestCase> 22public override TestCase? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 24var testCase = new TestCase(); 76public override void Write(Utf8JsonWriter writer, TestCase value, JsonSerializerOptions options)
Serialization\TestObjectBaseConverter.cs (1)
58var testObject = new TestCase();
Serialization\TestResultConverter.cs (2)
27var testCase = StjSafe.Deserialize<TestCase>(testCaseElement, options)!;
Serialization\TestResultConverterV2.cs (2)
30var testCase = StjSafe.Deserialize<TestCase>(testCaseElement, options)!;
Serialization\TestRunChangedEventArgsConverter.cs (1)
35var 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)
630var testCases = _dataSerializer.DeserializePayload<IEnumerable<TestCase>>(data);
Microsoft.TestPlatform.CrossPlatEngine (92)
Adapter\TestExecutionRecorder.cs (3)
69public void RecordStart(TestCase testCase) 114public void RecordEnd(TestCase testCase, TestOutcome outcome) 126private void SendTestCaseEnd(TestCase testCase, TestOutcome outcome)
Client\MTP\MtpDataCollectionForwarder.cs (1)
90public void NotifyTestCaseStart(TestCase testCase)
Client\MTP\MtpProxyDiscoveryManager.cs (2)
87var discovered = new List<TestCase>(); 127List<TestCase> chunk;
Client\MTP\MtpProxyExecutionManager.cs (5)
308List<TestCase>? tests, 407private 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)); 441private static List<Dictionary<string, object?>> BuildTestsFilter(List<TestCase> tests)
Client\MTP\MtpTestNodeConverter.cs (6)
15/// <see cref="TestCase"/> and <see cref="TestResult"/> instances. 28typeof(TestCase)); 40public static TestCase ToTestCase(JsonObject node, string source) 46var testCase = new TestCase(fullyQualifiedName, new Uri(executorUri), source) 69var testCase = ToTestCase(node, source); 121private static void AddTraits(JsonObject node, TestCase testCase)
Client\Parallel\DiscoveryDataAggregator.cs (2)
230public string? MarkSourcesBasedOnDiscoveredTestCases(string? previousSource, IEnumerable<TestCase>? testCases) 246foreach (var testCase in testCases)
Client\Parallel\ParallelDiscoveryEventsHandler.cs (2)
56public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<TestCase>? lastChunk) 184public void HandleDiscoveredTests(IEnumerable<TestCase>? discoveredTestCases)
Client\Parallel\ParallelProxyDiscoveryManager.cs (1)
148public bool HandlePartialDiscoveryComplete(IProxyDiscoveryManager proxyDiscoveryManager, long totalTests, IEnumerable<TestCase>? lastChunk, bool isAborted)
Client\Parallel\ParallelProxyExecutionManager.cs (5)
237Dictionary<string, TestCase[]> sourceToTestCasesMap = testRunCriteria.Tests.GroupBy(t => t.Source).ToDictionary(k => k.Key, v => v.ToArray()); 247List<TestCase[]> testCaseBatches; 269var groups = new List<List<TestCase>>(); 272groups.Add(new List<TestCase>()); 329TestRunCriteria CreateTestRunCriteriaFromTestCasesAndSettings(IEnumerable<TestCase> testCases, TestRunCriteria criteria, string? runsettingsXml)
Client\ProxyDiscoveryManager.cs (3)
193HandleDiscoveryComplete(discoveryCompleteEventsArgs, new List<TestCase>()); 247public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<TestCase>? lastChunk) 269public void HandleDiscoveredTests(IEnumerable<TestCase>? discoveredTestCases)
Client\TestRunCriteriaExtensions.cs (1)
41foreach (var tc in testRunCriteria.Tests)
DataCollection\InProcDataCollectionExtensionManager.cs (1)
302var 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)
224private void OnReportTestCases(ICollection<TestCase> testCases) 329private static void UpdateTestCases(IEnumerable<TestCase> testCases, string? package) 335foreach (var tc in testCases)
Discovery\DiscoveryResultCache.cs (7)
39private List<TestCase> _tests; 63_tests = new List<TestCase>(InitialCapacity(cacheSize)); 70public delegate void OnReportTestCases(ICollection<TestCase> tests); 75public IList<TestCase> Tests 80return new List<TestCase>(_tests); 93public void AddTest(TestCase test) 115_tests = new List<TestCase>(InitialCapacity(_cacheSize));
Discovery\TestCaseDiscoverySink.cs (1)
29public void SendTestCase(TestCase discoveredTest)
EventHandlers\IPathConverter.cs (4)
19TestCase UpdateTestCase(TestCase testCase, PathConversionDirection updateDirection); 21IEnumerable<TestCase> UpdateTestCases(IEnumerable<TestCase>? testCases, PathConversionDirection updateDirection);
EventHandlers\NullPathConverter.cs (4)
36TestCase IPathConverter.UpdateTestCase(TestCase testCase, PathConversionDirection _) => testCase; 38IEnumerable<TestCase> IPathConverter.UpdateTestCases(IEnumerable<TestCase>? testCases, PathConversionDirection _)
EventHandlers\PathConverter.cs (4)
78public TestCase UpdateTestCase(TestCase testCase, PathConversionDirection updateDirection) 86public IEnumerable<TestCase> UpdateTestCases(IEnumerable<TestCase>? testCases, PathConversionDirection updateDirection)
EventHandlers\TestCaseEventsHandler.cs (2)
38public void SendTestCaseStart(TestCase testCase) 44public void SendTestCaseEnd(TestCase testCase, TestOutcome outcome)
EventHandlers\TestRequestHandler.cs (2)
185public void SendTestCases(IEnumerable<TestCase>? discoveredTestCases) 246public void DiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<TestCase>? lastChunk)
Execution\BaseRunTests.cs (9)
672private void OnCacheHit(TestRunStatistics testRunStats, ICollection<TestResult> results, ICollection<TestCase>? inProgressTestCases) 712ICollection<TestCase>? inProgressTestCases, 714out ICollection<TestCase>? updatedInProgressTestCases) 737private ICollection<TestCase>? UpdateInProgressTests(ICollection<TestCase>? inProgressTestCases, string? package) 744ICollection<TestCase> updatedTestCases = new List<TestCase>(); 745foreach (var inProgressTestCase in inProgressTestCases) 747var updatedTestCase = _dataSerializer.Clone(inProgressTestCase);
Execution\ExecutionManager.cs (1)
136IEnumerable<TestCase> tests,
Execution\RunTestsWithTests.cs (10)
22private readonly IEnumerable<TestCase> _testCases; 25private Dictionary<Tuple<Uri, string>, List<TestCase>>? _executorUriVsTestList; 27public RunTestsWithTests(IRequestData requestData, IEnumerable<TestCase> testCases, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler) 43internal RunTestsWithTests(IRequestData requestData, IEnumerable<TestCase> testCases, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler, Dictionary<Tuple<Uri, string>, List<TestCase>>? executorUriVsTestList) 117private static Dictionary<Tuple<Uri, string>, List<TestCase>> GetExecutorVsTestCaseList(IEnumerable<TestCase> tests) 119var result = new Dictionary<Tuple<Uri, string>, List<TestCase>>(); 120foreach (var test in tests) 128if (result.TryGetValue(executorUriExtensionTuple, out List<TestCase>? testList))
Execution\TestRunCache.cs (8)
62private List<TestCase> _inProgressTests; 95_inProgressTests = new List<TestCase>(InitialCapacity(cacheSize)); 106internal delegate void OnCacheHit(TestRunStatistics testRunStats, ICollection<TestResult> results, ICollection<TestCase> inProgressTests); 125public ICollection<TestCase> InProgressTests 185public void OnTestStarted(TestCase testCase) 231public bool OnTestCompletion(TestCase? completedTest) 254var inProgressTest = _inProgressTests.FirstOrDefault(inProgress => inProgress.Id == completedTest.Id); 343_inProgressTests = new List<TestCase>(InitialCapacity(_cacheSize));
Interfaces\ITestRunCache.cs (3)
19ICollection<TestCase> InProgressTests { get; } 26void OnTestStarted(TestCase testCase); 30bool OnTestCompletion(TestCase completedTest);
Utilities\TestSourcesUtility.cs (2)
35internal static IEnumerable<string>? GetSources(IEnumerable<TestCase>? tests) 56internal static string? GetDefaultCodebasePath(IEnumerable<TestCase> tests)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameTestObject.cs (1)
47public BlameTestObject(TestCase testCase)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (54)
DiscoveryEventsHandleConverter.cs (2)
55public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<TestCase>? lastChunk) 64public void HandleDiscoveredTests(IEnumerable<TestCase>? discoveredTestCases)
Interfaces\ITranslationLayerRequestSender.cs (2)
92IEnumerable<TestCase> testCases, 131IEnumerable<TestCase> testCases,
Interfaces\ITranslationLayerRequestSenderAsync.cs (4)
60/// IEnumerable{TestCase}, 68IEnumerable<TestCase> testCases, 98/// IEnumerable{TestCase}, 107IEnumerable<TestCase> testCases,
Interfaces\IVsTestConsoleWrapper.cs (8)
146IEnumerable<TestCase> testCases, 159IEnumerable<TestCase> testCases, 174IEnumerable<TestCase> testCases, 191IEnumerable<TestCase> testCases, 275IEnumerable<TestCase> testCases, 290IEnumerable<TestCase> testCases, 307IEnumerable<TestCase> testCases, 326IEnumerable<TestCase> testCases,
Interfaces\IVsTestConsoleWrapperAsync.cs (16)
152/// IEnumerable{TestCase}, 158IEnumerable<TestCase> testCases, 165/// IEnumerable{TestCase}, 172IEnumerable<TestCase> testCases, 180/// IEnumerable{TestCase}, 188IEnumerable<TestCase> testCases, 197/// IEnumerable{TestCase}, 206IEnumerable<TestCase> testCases, 288/// IEnumerable{TestCase}, 295IEnumerable<TestCase> testCases, 303/// IEnumerable{TestCase}, 311IEnumerable<TestCase> testCases, 320/// IEnumerable{TestCase}, 329IEnumerable<TestCase> testCases, 339/// IEnumerable{TestCase}, 349IEnumerable<TestCase> testCases,
VsTestConsoleRequestSender.cs (6)
253IEnumerable<TestCase> testCases, 278IEnumerable<TestCase> testCases, 357IEnumerable<TestCase> testCases, 384IEnumerable<TestCase> testCases, 594.DeserializePayload<IEnumerable<TestCase>>(message); 686.DeserializePayload<IEnumerable<TestCase>>(message);
VsTestConsoleWrapper.cs (16)
325IEnumerable<TestCase> testCases, 338IEnumerable<TestCase> testCases, 353IEnumerable<TestCase> testCases, 370IEnumerable<TestCase> testCases, 475IEnumerable<TestCase> testCases, 490IEnumerable<TestCase> testCases, 507IEnumerable<TestCase> testCases, 526IEnumerable<TestCase> testCases, 746IEnumerable<TestCase> testCases, 759IEnumerable<TestCase> testCases, 774IEnumerable<TestCase> testCases, 791IEnumerable<TestCase> testCases, 896IEnumerable<TestCase> testCases, 911IEnumerable<TestCase> testCases, 928IEnumerable<TestCase> testCases, 947IEnumerable<TestCase> testCases,
Microsoft.VisualStudio.TestPlatform.Client (3)
Discovery\DiscoveryRequest.cs (2)
220public void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<TestCase>? lastChunk) 310public void HandleDiscoveredTests(IEnumerable<TestCase>? discoveredTestCases)
Execution\TestRunRequest.cs (1)
474foreach (TestCase testCase in testRunChangedArgs.ActiveTests)
Microsoft.VisualStudio.TestPlatform.Common (13)
ExtensionDecorators\SerialTestRunDecorator.cs (6)
26public void RunTests(IEnumerable<TestCase>? tests, IRunContext? runContext, IFrameworkHandle? frameworkHandle) 36foreach (TestCase testToRun in tests) 39OriginalTestExecutor.RunTests(new List<TestCase> { testToRun }, runContext, new SerializeTestRunDecoratorFrameworkHandle(frameworkHandle!, _runSequentialEvent)); 73public bool ShouldAttachToTestHost(IEnumerable<TestCase>? tests, IRunContext runContext) 124public void RecordEnd(TestCase testCase, TestOutcome outcome) 133public void RecordStart(TestCase testCase)
ExtensionDecorators\SerialTestRunDecoratorFrameworkHandle.cs (2)
34public void RecordEnd(TestCase testCase, TestOutcome outcome) 43public void RecordStart(TestCase testCase)
Interfaces\Engine\ClientProtocol\IParallelProxyDiscoveryManager.cs (1)
30IEnumerable<TestCase>? lastChunk,
Interfaces\Engine\ITestCaseEventsHandler.cs (2)
17void SendTestCaseStart(TestCase testCase); 24void SendTestCaseEnd(TestCase testCase, TestOutcome outcome);
Interfaces\Engine\TesthostProtocol\IExecutionManager.cs (1)
47void StartTestRun(IEnumerable<TestCase> tests, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEvents, IInternalTestRunEventsHandler eventHandler);
src\vstest\src\Microsoft.TestPlatform.Filter.Source\TestCaseFilterExpression.cs (1)
82public bool MatchTestCase(TestCase testCase, Func<string, object?> propertyValueProvider)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (7)
TrxLogger.cs (2)
500TestCase testCase = rsTestResult.TestCase; 684TestCase testCase = rockSteadyTestResult.TestCase;
Utility\Converter.cs (5)
56TestCase rockSteadyTestCase) 274public static List<string> GetCustomPropertyValueFromTestCase(TestCase testCase, string categoryId) 293public static Guid GetTestId(TestCase rockSteadyTestCase) 559private static int GetPriority(TestCase rockSteadyTestCase) 575private static string GetOwner(TestCase rockSteadyTestCase)
Microsoft.VisualStudio.TestPlatform.ObjectModel (50)
Adapter\Interfaces\ITestCaseDiscoverySink.cs (1)
16void SendTestCase(TestCase discoveredTest);
Adapter\Interfaces\ITestCaseFilterExpression.cs (1)
21bool MatchTestCase(TestCase testCase, Func<string, object?> propertyValueProvider);
Adapter\Interfaces\ITestExecutionRecorder.cs (2)
29void RecordStart(TestCase testCase); 37void RecordEnd(TestCase testCase, TestOutcome outcome);
Adapter\Interfaces\ITestExecutor.cs (1)
23void RunTests(IEnumerable<TestCase>? tests, IRunContext? runContext, IFrameworkHandle? frameworkHandle);
Adapter\Interfaces\ITestExecutor2.cs (1)
37bool ShouldAttachToTestHost(IEnumerable<TestCase>? tests, IRunContext runContext);
Client\Events\DiscoveredTestsEventArgs.cs (2)
14public DiscoveredTestsEventArgs(IEnumerable<TestCase>? discoveredTestCases) 21public IEnumerable<TestCase>? DiscoveredTestCases { get; private set; }
Client\Events\TestRunChangedEventArgs.cs (2)
22public TestRunChangedEventArgs(ITestRunStatistics? stats, IEnumerable<TestResult>? newTestResults, IEnumerable<TestCase>? activeTests) 45public IEnumerable<TestCase>? ActiveTests { get; private set; }
Client\Interfaces\ITestDiscoveryEventsHandler.cs (2)
19void HandleDiscoveryComplete(long totalTests, IEnumerable<TestCase>? lastChunk, bool isAborted); 26void HandleDiscoveredTests(IEnumerable<TestCase>? discoveredTestCases);
Client\Interfaces\ITestDiscoveryEventsHandler2.cs (2)
18void HandleDiscoveryComplete(DiscoveryCompleteEventArgs discoveryCompleteEventArgs, IEnumerable<TestCase>? lastChunk); 24void HandleDiscoveredTests(IEnumerable<TestCase>? discoveredTestCases);
Client\Interfaces\ITestRunConfiguration.cs (1)
38IEnumerable<TestCase>? Tests { get; }
Client\Payloads\TestRunRequestPayload.cs (1)
32public List<TestCase>? TestCases { get; set; }
Client\TestRunCriteria.cs (10)
314IEnumerable<TestCase> tests, 333IEnumerable<TestCase> tests, 355IEnumerable<TestCase> tests, 382IEnumerable<TestCase> tests, 403public TestRunCriteria(IEnumerable<TestCase> tests, BaseTestRunCriteria baseTestRunCriteria) 406var testCases = tests as IList<TestCase> ?? tests.ToList(); 429IEnumerable<TestCase> tests, 468IEnumerable<TestCase> tests, 483var testCases = tests as IList<TestCase> ?? tests?.ToList(); 520public IEnumerable<TestCase>? Tests { get; private set; }
DataCollector\DataCollectionContext.cs (3)
36public DataCollectionContext(TestCase? testCase) 74protected internal DataCollectionContext(SessionId sessionId, TestCase testCase) 84public TestCase? TestCase { get; private set; }
DataCollector\Events\TestCaseEvents.cs (6)
65TestCase testElement) 119public TestCase? TestElement 146public TestCaseStartEventArgs(TestCase testElement) : this(new DataCollectionContext(new SessionId(Guid.Empty)), testElement) 162TestCase testElement) 227public TestCaseEndEventArgs(TestCase testElement, TestOutcome testOutcome) : this(new DataCollectionContext(new SessionId(Guid.Empty)), testElement, testOutcome) 246TestCase testElement,
DataCollector\InProcDataCollector\TestCaseStartArgs.cs (2)
17public TestCaseStartArgs(TestCase? testCase) 25public 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. 293private 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)); 294private 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)); 333public static readonly TestProperty Id = TestProperty.Register("TestCase.Id", IdLabel, string.Empty, string.Empty, typeof(Guid), ValidateGuid, TestPropertyAttributes.Hidden, typeof(TestCase)); 334public static readonly TestProperty FullyQualifiedName = TestProperty.Register("TestCase.FullyQualifiedName", FullyQualifiedNameLabel, string.Empty, string.Empty, typeof(string), ValidateName, TestPropertyAttributes.Hidden, typeof(TestCase)); 335public static readonly TestProperty DisplayName = TestProperty.Register("TestCase.DisplayName", NameLabel, string.Empty, string.Empty, typeof(string), ValidateDisplay, TestPropertyAttributes.None, typeof(TestCase)); 336public static readonly TestProperty ExecutorUri = TestProperty.Register("TestCase.ExecutorUri", ExecutorUriLabel, string.Empty, string.Empty, typeof(Uri), ValidateExecutorUri, TestPropertyAttributes.Hidden, typeof(TestCase)); 337public static readonly TestProperty Source = TestProperty.Register("TestCase.Source", SourceLabel, typeof(string), typeof(TestCase)); 338public static readonly TestProperty CodeFilePath = TestProperty.Register("TestCase.CodeFilePath", FilePathLabel, typeof(string), typeof(TestCase)); 339public static readonly TestProperty LineNumber = TestProperty.Register("TestCase.LineNumber", LineNumberLabel, typeof(int), TestPropertyAttributes.Hidden, typeof(TestCase));
TestResult.cs (2)
26public TestResult(TestCase testCase) 42public TestCase TestCase { get; private set; }
vstest.console (13)
Internal\ConsoleLogger.cs (1)
939public TestCase TestCase { get; }
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (8)
266public static IEnumerable<TestCase> FilterTests(IEnumerable<TestCase> testCases) 270List<TestCase> filteredList; 309private static List<TestCase> GetFilteredTestCases(IEnumerable<TestCase> testCases) 311var filteredList = new List<TestCase>(); 319foreach (var testCase in testCases) 339private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(TestCase testCase)
Processors\ListTestsArgumentProcessor.cs (1)
230foreach (var test in args.DiscoveredTestCases!)
Processors\RunSpecificTestsArgumentProcessor.cs (2)
114private readonly Collection<TestCase> _selectedTestCases = new(); 291foreach (var testCase in args.DiscoveredTestCases!)
TestPlatformHelpers\TestRequestManager.cs (1)
1439foreach (var testCase in testRunRequestPayload.TestCases)
vstest.console.arm64 (13)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
939public TestCase TestCase { get; }
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (8)
266public static IEnumerable<TestCase> FilterTests(IEnumerable<TestCase> testCases) 270List<TestCase> filteredList; 309private static List<TestCase> GetFilteredTestCases(IEnumerable<TestCase> testCases) 311var filteredList = new List<TestCase>(); 319foreach (var testCase in testCases) 339private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(TestCase testCase)
src\vstest\src\vstest.console\Processors\ListTestsArgumentProcessor.cs (1)
230foreach (var test in args.DiscoveredTestCases!)
src\vstest\src\vstest.console\Processors\RunSpecificTestsArgumentProcessor.cs (2)
114private readonly Collection<TestCase> _selectedTestCases = new(); 291foreach (var testCase in args.DiscoveredTestCases!)
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (1)
1439foreach (var testCase in testRunRequestPayload.TestCases)