4 instantiations of AttachmentSet
Microsoft.TestPlatform.CommunicationUtilities (2)
_generated\29\TestPlatformJsonContext.AttachmentSet.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
((global::System.Uri)args[0], (string)args[1]),
Serialization\AttachmentConverters.cs (1)
27
var attachmentSet = new
AttachmentSet
(uri, displayName);
Microsoft.TestPlatform.Utilities (1)
CodeCoverageDataAttachmentsHandler.cs (1)
73
var resultAttachmentSet = new
AttachmentSet
(CodeCoverageDataCollectorUri, CoverageFriendlyName);
Microsoft.VisualStudio.TestPlatform.Common (1)
DataCollection\DataCollectionAttachmentManager.cs (1)
178
AttachmentSets[fileTransferInfo.Context].TryAdd(uri, new
AttachmentSet
(uri, friendlyName));
278 references to AttachmentSet
Microsoft.TestPlatform.CommunicationUtilities (119)
_generated\112\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (5)
138
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
))
326
if (type == typeof(global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>))
350
if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>))
386
if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>))
406
if (type == typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>))
_generated\2\TestPlatformJsonContext.AfterTestRunEndResult.g.cs (3)
53
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>
68
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.Common.DataCollection.AfterTestRunEndResult).GetProperty("AttachmentSets", InstanceMemberBindingFlags, null, typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>), global::System.Array.Empty<global::System.Type>(), null),
71
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>(options, info0);
_generated\25\TestPlatformJsonContext.TestRunAttachmentsProcessingCompletePayload.g.cs (3)
73
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>
88
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingCompletePayload).GetProperty("Attachments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>), 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.
AttachmentSet
>>(options, info1);
_generated\27\TestPlatformJsonContext.TestRunCompletePayload.g.cs (3)
93
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>
108
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunCompletePayload).GetProperty("RunAttachments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>), global::System.Array.Empty<global::System.Type>(), null),
111
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>(options, info2);
_generated\29\TestPlatformJsonContext.AttachmentSet.g.cs (23)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>? _AttachmentSet;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
> AttachmentSet
22
get => _AttachmentSet ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
> Create_AttachmentSet(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::System.Uri), typeof(string)}, modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
),
60
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
)obj).Uri,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
).GetProperty("Uri", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
79
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
),
81
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
)obj).DisplayName,
89
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
100
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
),
102
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
)obj).Attachments,
110
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
).GetProperty("Attachments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.UriDataAttachment>), global::System.Array.Empty<global::System.Type>(), null),
121
private void AttachmentSetSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
? value)
132
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
)value).Uri, Uri);
133
writer.WriteString(PropName_DisplayName, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
)value).DisplayName);
135
IListUriDataAttachmentSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
)value).Attachments);
_generated\45\TestPlatformJsonContext.TestRunAttachmentsProcessingPayload.g.cs (3)
53
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>
68
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingPayload).GetProperty("Attachments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>), 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.
AttachmentSet
>>(options, info0);
_generated\48\TestPlatformJsonContext.TestRunCompleteEventArgs.g.cs (3)
133
var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>
148
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("AttachmentSets", InstanceMemberBindingFlags, null, typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>), global::System.Array.Empty<global::System.Type>(), null),
151
properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>(options, info4);
_generated\65\TestPlatformJsonContext.TestResult.g.cs (3)
74
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>
89
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("Attachments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>), global::System.Array.Empty<global::System.Type>(), null),
92
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>(options, info1);
_generated\76\TestPlatformJsonContext.ICollectionAttachmentSet.g.cs (12)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>? _ICollectionAttachmentSet;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> ICollectionAttachmentSet
22
get => _ICollectionAttachmentSet ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> Create_ICollectionAttachmentSet(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateICollectionInfo<global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>(options, info);
47
private void ICollectionAttachmentSetSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>? value)
57
foreach (global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
element in value)
_generated\82\TestPlatformJsonContext.IEnumerableAttachmentSet.g.cs (12)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>? _IEnumerableAttachmentSet;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> IEnumerableAttachmentSet
22
get => _IEnumerableAttachmentSet ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> Create_IEnumerableAttachmentSet(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>(options, info);
47
private void IEnumerableAttachmentSetSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>? value)
57
foreach (global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
element in value)
_generated\91\TestPlatformJsonContext.ListAttachmentSet.g.cs (12)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>? _ListAttachmentSet;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> ListAttachmentSet
22
get => _ListAttachmentSet ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> Create_ListAttachmentSet(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>
31
ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>(),
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>(options, info);
47
private void ListAttachmentSetSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>? value)
_generated\96\TestPlatformJsonContext.CollectionAttachmentSet.g.cs (12)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>? _CollectionAttachmentSet;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> CollectionAttachmentSet
22
get => _CollectionAttachmentSet ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>)Options.GetTypeInfo(typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> Create_CollectionAttachmentSet(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>>
31
ObjectCreator = () => new global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>(),
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIListInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>(options, info);
47
private void CollectionAttachmentSetSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
AttachmentSet
>? value)
DataCollectionTestCaseEventHandler.cs (2)
111
Collection<
AttachmentSet
> attachmentSets;
122
attachmentSets = new Collection<
AttachmentSet
>();
DataCollectionTestCaseEventSender.cs (3)
107
public Collection<
AttachmentSet
>? SendTestCaseEnd(TestCaseEndEventArgs e)
109
var attachmentSets = new Collection<
AttachmentSet
>();
115
attachmentSets = _dataSerializer.DeserializePayload<Collection<
AttachmentSet
>>(message);
EventHandlers\TestRunEventsHandler.cs (1)
48
public void HandleTestRunComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<
AttachmentSet
>? runContextAttachments, ICollection<string>? executorUris)
Interfaces\IDataCollectionTestCaseEventSender.cs (1)
51
Collection<
AttachmentSet
>? SendTestCaseEnd(TestCaseEndEventArgs e);
Interfaces\ITestRequestHandler.cs (1)
74
void SendExecutionComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<
AttachmentSet
>? runContextAttachments, ICollection<string>? executorUris);
Messages\TestRunAttachmentsProcessingCompletePayload.cs (1)
24
public IEnumerable<
AttachmentSet
>? Attachments { get; set; }
Messages\TestRunCompletePayload.cs (1)
29
public ICollection<
AttachmentSet
>? RunAttachments { get; set; }
Serialization\AfterTestRunEndResultConverter.cs (2)
34
var attachmentSets = DeserializeProperty<Collection<
AttachmentSet
>>(root, "AttachmentSets", options) ?? new Collection<
AttachmentSet
>();
Serialization\AttachmentConverters.cs (5)
16
/// JSON converter for <see cref="
AttachmentSet
"/> that handles the lack of a parameterless constructor.
18
internal class AttachmentSetConverter : JsonConverter<
AttachmentSet
>
20
public override
AttachmentSet
? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
27
var
attachmentSet = new AttachmentSet(uri, displayName);
43
public override void Write(Utf8JsonWriter writer,
AttachmentSet
value, JsonSerializerOptions options)
Serialization\TestResultConverter.cs (1)
37
testResult.Attachments.Add(StjSafe.Deserialize<
AttachmentSet
>(attachment, options)!);
Serialization\TestResultConverterV2.cs (1)
40
testResult.Attachments.Add(StjSafe.Deserialize<
AttachmentSet
>(attachment, options)!);
Serialization\TestRunCompleteEventArgsConverter.cs (2)
38
var attachmentSets = DeserializeProperty<Collection<
AttachmentSet
>>(root, "AttachmentSets", options) ?? new Collection<
AttachmentSet
>();
TestPlatformJsonContext.cs (4)
54
[JsonSerializable(typeof(
AttachmentSet
))]
61
[JsonSerializable(typeof(IEnumerable<
AttachmentSet
>))]
62
[JsonSerializable(typeof(List<
AttachmentSet
>))]
81
[JsonSerializable(typeof(Collection<
AttachmentSet
>))]
Microsoft.TestPlatform.CrossPlatEngine (82)
Adapter\TestExecutionRecorder.cs (5)
21
private readonly List<
AttachmentSet
> _attachmentSets;
42
_attachmentSets = new List<
AttachmentSet
>();
56
internal Collection<
AttachmentSet
> Attachments
60
return new Collection<
AttachmentSet
>(_attachmentSets);
149
public void RecordAttachments(IList<
AttachmentSet
> attachments)
AttachmentsProcessing\TestRunAttachmentsProcessingManager.cs (18)
45
public async Task ProcessTestRunAttachmentsAsync(string? runSettingsXml, IRequestData requestData, IEnumerable<
AttachmentSet
> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, ITestRunAttachmentsProcessingEventsHandler eventHandler, CancellationToken cancellationToken)
50
public Task<Collection<
AttachmentSet
>> ProcessTestRunAttachmentsAsync(string? runSettingsXml, IRequestData requestData, IEnumerable<
AttachmentSet
> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, CancellationToken cancellationToken)
55
private async Task<Collection<
AttachmentSet
>> InternalProcessTestRunAttachmentsAsync(string? runSettingsXml, IRequestData requestData, IEnumerable<
AttachmentSet
> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, ITestRunAttachmentsProcessingEventsHandler? eventHandler, CancellationToken cancellationToken)
58
Collection<
AttachmentSet
> localAttachments = new(attachments.ToList());
67
var cancelAttachmentProcessingCompletionSource = new TaskCompletionSource<Collection<
AttachmentSet
>>();
70
Task<Collection<
AttachmentSet
>> task = Task.Run(async () => await ProcessAttachmentsAsync(runSettingsXml, localAttachments, invokedDataCollector, eventHandler, cancellationToken));
106
private async Task<Collection<
AttachmentSet
>> ProcessAttachmentsAsync(string? runSettingsXml, Collection<
AttachmentSet
> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, ITestRunAttachmentsProcessingEventsHandler? eventsHandler, CancellationToken cancellationToken)
134
Collection<
AttachmentSet
> attachmentsBackup = null!;
140
attachmentsBackup = new Collection<
AttachmentSet
>(attachments.ToList());
154
foreach (
var
attachment in attachmentsToBeProcessed)
171
ICollection<
AttachmentSet
> processedAttachments = await dataCollectorAttachmentsProcessor.DataCollectorAttachmentProcessorInstance.ProcessAttachmentSetsAsync(
173
new Collection<
AttachmentSet
>(attachmentsToBeProcessed),
180
foreach (
var
attachment in processedAttachments)
206
private Collection<
AttachmentSet
> FinalizeOperation(IRequestData requestData, TestRunAttachmentsProcessingCompleteEventArgs completeArgs, Collection<
AttachmentSet
> attachments, Stopwatch stopwatch, ITestRunAttachmentsProcessingEventsHandler? eventHandler)
Client\InProcessProxyexecutionManager.cs (1)
103
var completeArgs = new TestRunCompleteEventArgs(null, false, true, exception, new Collection<
AttachmentSet
>(), new Collection<InvokedDataCollector>(), TimeSpan.Zero);
Client\Parallel\ParallelProxyExecutionManager.cs (2)
147
ICollection<
AttachmentSet
>? runContextAttachments,
479
var completeArgs = new TestRunCompleteEventArgs(null, false, true, null, new Collection<
AttachmentSet
>(), new Collection<InvokedDataCollector>(), TimeSpan.Zero);
Client\Parallel\ParallelRunDataAggregator.cs (7)
36
RunContextAttachments = new Collection<
AttachmentSet
>();
37
RunCompleteArgsAttachments = new List<
AttachmentSet
>();
52
public Collection<
AttachmentSet
> RunContextAttachments { get; set; }
54
public List<
AttachmentSet
> RunCompleteArgsAttachments { get; }
144
ICollection<
AttachmentSet
>? runContextAttachments,
145
Collection<
AttachmentSet
>? runCompleteArgsAttachments,
157
foreach (
var
attachmentSet in runContextAttachments)
Client\Parallel\ParallelRunEventsHandler.cs (3)
66
ICollection<
AttachmentSet
>? runContextAttachments,
79
new Collection<
AttachmentSet
>(_runDataAggregator.RunCompleteArgsAttachments),
109
ICollection<
AttachmentSet
>? runContextAttachments,
Client\ProxyExecutionManager.cs (2)
322
var completeArgs = new TestRunCompleteEventArgs(null, false, true, null, new Collection<
AttachmentSet
>(), new Collection<InvokedDataCollector>(), TimeSpan.Zero);
420
public void HandleTestRunComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<
AttachmentSet
>? runContextAttachments, ICollection<string>? executorUris)
DataCollection\DataCollectionResult.cs (2)
15
public DataCollectionResult(Collection<
AttachmentSet
>? attachments, Collection<InvokedDataCollector>? invokedDataCollectors)
24
public Collection<
AttachmentSet
>? Attachments { get; }
DataCollection\DataCollectionTestRunEventsHandler.cs (8)
32
private Collection<
AttachmentSet
>? _dataCollectionAttachmentSets;
143
public void HandleTestRunComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<
AttachmentSet
>? runContextAttachments, ICollection<string>? executorUris)
205
internal static ICollection<
AttachmentSet
>? GetCombinedAttachmentSets(Collection<
AttachmentSet
>? originalAttachmentSets, ICollection<
AttachmentSet
>? newAttachments)
214
return new Collection<
AttachmentSet
>(newAttachments.ToList());
217
foreach (
var
attachmentSet in newAttachments)
219
var
attSet = originalAttachmentSets.FirstOrDefault(item => Equals(item.Uri, attachmentSet.Uri));
DataCollection\ParallelDataCollectionEventsHandler.cs (1)
54
ICollection<
AttachmentSet
>? runContextAttachments,
DataCollection\ProxyOutOfProcDataCollectionManager.cs (8)
22
private readonly Dictionary<Guid, Collection<
AttachmentSet
>> _attachmentsCache;
40
_attachmentsCache = new Dictionary<Guid, Collection<
AttachmentSet
>>();
48
_attachmentsCache = new Dictionary<Guid, Collection<
AttachmentSet
>>();
64
if (!_attachmentsCache.TryGetValue(e.TestCaseId, out Collection<
AttachmentSet
>? attachmentSets))
66
attachmentSets = new Collection<
AttachmentSet
>();
70
foreach (
var
attachment in attachments)
82
if (_attachmentsCache.TryGetValue(e.TestCaseId, out Collection<
AttachmentSet
>? attachmentSets))
84
foreach (
var
attachment in attachmentSets)
EventHandlers\IPathConverter.cs (4)
27
Collection<
AttachmentSet
> UpdateAttachmentSets(Collection<
AttachmentSet
> attachmentSets, PathConversionDirection updateDirection);
29
ICollection<
AttachmentSet
> UpdateAttachmentSets(ICollection<
AttachmentSet
>? attachmentSets, PathConversionDirection updateDirection);
EventHandlers\NullPathConverter.cs (4)
22
Collection<
AttachmentSet
> IPathConverter.UpdateAttachmentSets(Collection<
AttachmentSet
> attachmentSets, PathConversionDirection _) => attachmentSets;
24
ICollection<
AttachmentSet
> IPathConverter.UpdateAttachmentSets(ICollection<
AttachmentSet
>? attachmentSets, PathConversionDirection _) => attachmentSets!;
EventHandlers\PathConverter.cs (6)
108
public Collection<
AttachmentSet
> UpdateAttachmentSets(Collection<
AttachmentSet
> attachmentSets, PathConversionDirection updateDirection)
115
public ICollection<
AttachmentSet
> UpdateAttachmentSets(ICollection<
AttachmentSet
>? attachmentSets, PathConversionDirection updateDirection)
122
private static
AttachmentSet
UpdateAttachmentSet(
AttachmentSet
attachmentSet, PathConversionDirection updateDirection)
EventHandlers\TestRequestHandler.cs (1)
214
ICollection<
AttachmentSet
>? runContextAttachments,
Execution\BaseRunTests.cs (1)
627
Collection<
AttachmentSet
>? attachments = FrameworkHandle?.Attachments;
PostProcessing\ArtifactProcessingManager.cs (3)
198
List<
AttachmentSet
> attachments = new();
212
foreach (
var
attachmentSet in eventArgs?.AttachmentSets ?? Enumerable.Empty<
AttachmentSet
>())
PostProcessing\PostProcessingTestRunAttachmentsProcessingEventsHandler.cs (6)
20
private readonly ConcurrentBag<
AttachmentSet
> _attachmentsSet = new();
36
public void HandleProcessedAttachmentsChunk(IEnumerable<
AttachmentSet
> attachments)
44
foreach (
var
attachment in attachments)
50
public void HandleTestRunAttachmentsProcessingComplete(TestRunAttachmentsProcessingCompleteEventArgs attachmentsProcessingCompleteEventArgs, IEnumerable<
AttachmentSet
>? lastChunk)
52
foreach (
var
attachment in lastChunk ?? [])
64
foreach (
var
attachmentSet in _attachmentsSet)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameLogger.cs (1)
125
foreach (
var
attachmentSet in e.AttachmentSets)
Microsoft.TestPlatform.Utilities (6)
CodeCoverageDataAttachmentsHandler.cs (6)
47
public async Task<ICollection<
AttachmentSet
>> ProcessAttachmentSetsAsync(XmlElement configurationElement, ICollection<
AttachmentSet
>? attachments, IProgress<int> progressReporter, IMessageLogger? logger, CancellationToken cancellationToken)
50
return new Collection<
AttachmentSet
>();
55
foreach (
var
attachmentSet in attachments)
73
var
resultAttachmentSet = new AttachmentSet(CodeCoverageDataCollectorUri, CoverageFriendlyName);
89
return new Collection<
AttachmentSet
> { resultAttachmentSet };
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (7)
Interfaces\ITranslationLayerRequestSenderAsync.cs (1)
155
IEnumerable<
AttachmentSet
> attachments,
Interfaces\IVsTestConsoleWrapperAsync.cs (2)
452
IEnumerable<
AttachmentSet
> attachments,
473
IEnumerable<
AttachmentSet
> attachments,
VsTestConsoleRequestSender.cs (2)
833
IEnumerable<
AttachmentSet
> attachments,
1302
IEnumerable<
AttachmentSet
> attachments,
VsTestConsoleWrapper.cs (2)
1148
IEnumerable<
AttachmentSet
> attachments,
1170
IEnumerable<
AttachmentSet
> attachments,
Microsoft.VisualStudio.TestPlatform.Client (6)
AttachmentsProcessing\InProcessTestRunAttachmentsProcessingEventsHandler.cs (2)
28
public void HandleProcessedAttachmentsChunk(IEnumerable<
AttachmentSet
> attachments)
51
IEnumerable<
AttachmentSet
>? lastChunk)
AttachmentsProcessing\TestRunAttachmentsProcessingEventsHandler.cs (2)
32
public void HandleTestRunAttachmentsProcessingComplete(TestRunAttachmentsProcessingCompleteEventArgs attachmentsProcessingCompleteEventArgs, IEnumerable<
AttachmentSet
>? lastChunk)
57
public void HandleProcessedAttachmentsChunk(IEnumerable<
AttachmentSet
> attachments)
Execution\TestRunRequest.cs (2)
356
public void HandleTestRunComplete(TestRunCompleteEventArgs runCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<
AttachmentSet
>? runContextAttachments, ICollection<string>? executorUris)
401
runContextAttachments != null ? new Collection<
AttachmentSet
>(runContextAttachments.ToList()) : null,
Microsoft.VisualStudio.TestPlatform.Common (31)
DataCollection\AfterTestRunEndResult.cs (3)
38
public AfterTestRunEndResult(Collection<
AttachmentSet
> attachmentSets, IDictionary<string, object> metrics)
54
public AfterTestRunEndResult(Collection<
AttachmentSet
> attachmentSets,
64
public Collection<
AttachmentSet
> AttachmentSets { get; private set; }
DataCollection\DataCollectionAttachmentManager.cs (5)
83
AttachmentSets = new ConcurrentDictionary<DataCollectionContext, ConcurrentDictionary<Uri,
AttachmentSet
>>();
94
internal ConcurrentDictionary<DataCollectionContext, ConcurrentDictionary<Uri,
AttachmentSet
>> AttachmentSets
136
public List<
AttachmentSet
> GetAttachments(DataCollectionContext dataCollectionContext)
150
List<
AttachmentSet
> attachments = new();
173
AttachmentSets.GetOrAdd(fileTransferInfo.Context, _ => new ConcurrentDictionary<Uri,
AttachmentSet
>());
DataCollection\DataCollectionManager.cs (13)
227
public Collection<
AttachmentSet
> SessionEnded(bool isCancelled = false)
232
return new Collection<
AttachmentSet
>();
238
return new Collection<
AttachmentSet
>();
245
var result = new List<
AttachmentSet
>();
254
return new Collection<
AttachmentSet
>(result);
262
return new Collection<
AttachmentSet
>(result);
340
public Collection<
AttachmentSet
> TestCaseEnded(TestCaseEndEventArgs testCaseEndEventArgs)
344
return new Collection<
AttachmentSet
>();
362
List<
AttachmentSet
>? result = null;
371
return new Collection<
AttachmentSet
>(result!);
379
return new Collection<
AttachmentSet
>(result);
783
private static void LogAttachments(List<
AttachmentSet
> attachmentSets)
791
foreach (
var
entry in attachmentSets)
DataCollection\Interfaces\IDataCollectionAttachmentManager.cs (1)
41
List<
AttachmentSet
> GetAttachments(DataCollectionContext dataCollectionContext);
DataCollection\Interfaces\IDataCollectionManager.cs (2)
40
Collection<
AttachmentSet
> TestCaseEnded(TestCaseEndEventArgs testCaseEndEventArgs);
68
Collection<
AttachmentSet
> SessionEnded(bool isCancelled);
ExtensionDecorators\SerialTestRunDecorator.cs (1)
121
public void RecordAttachments(IList<
AttachmentSet
> attachmentSets)
ExtensionDecorators\SerialTestRunDecoratorFrameworkHandle.cs (1)
31
public void RecordAttachments(IList<
AttachmentSet
> attachmentSets)
Interfaces\Engine\ClientProtocol\IParallelProxyExecutionManager.cs (1)
29
ICollection<
AttachmentSet
>? runContextAttachments,
Interfaces\Engine\ITestRunAttachmentsProcessingManager.cs (3)
27
Task ProcessTestRunAttachmentsAsync(string? runSettingsXml, IRequestData requestData, IEnumerable<
AttachmentSet
> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, ITestRunAttachmentsProcessingEventsHandler eventHandler, CancellationToken cancellationToken);
38
Task<Collection<
AttachmentSet
>> ProcessTestRunAttachmentsAsync(string? runSettingsXml, IRequestData requestData, IEnumerable<
AttachmentSet
> attachments, IEnumerable<InvokedDataCollector>? invokedDataCollector, CancellationToken cancellationToken);
Logging\InternalTestLoggerEvents.cs (1)
288
internal void CompleteTestRun(ITestRunStatistics? stats, bool isCanceled, bool isAborted, Exception? error, Collection<
AttachmentSet
>? attachmentSet, Collection<InvokedDataCollector>? invokedDataCollectors, TimeSpan elapsedTime)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (7)
Utility\Converter.cs (7)
170
public List<CollectorDataEntry> ToCollectionEntries(IEnumerable<
AttachmentSet
> attachmentSets, TestRun testRun, string trxFileDirectory)
181
foreach (
var
attachmentSet in attachmentSets)
193
public IList<string> ToResultFiles(IEnumerable<
AttachmentSet
>? attachmentSets, TestRun testRun, string trxFileDirectory,
202
foreach (
var
attachmentSet in attachmentSets)
388
foreach (
AttachmentSet
attachmentSet in rockSteadyTestResult.Attachments)
438
private CollectorDataEntry ToCollectorEntry(
AttachmentSet
attachmentSet, Guid testResultExecutionId, TestRun testRun, string trxFileDirectory)
495
private IList<string> ToResultFiles(
AttachmentSet
attachmentSet, Guid testResultExecutionId, TestRun testRun, string trxFileDirectory)
Microsoft.VisualStudio.TestPlatform.ObjectModel (17)
Adapter\Interfaces\ITestExecutionRecorder.cs (1)
44
void RecordAttachments(IList<
AttachmentSet
> attachmentSets);
Client\Events\TestRunCompleteEventArgs.cs (5)
23
AttachmentSets = new Collection<
AttachmentSet
>();
41
Collection<
AttachmentSet
>? attachmentSets,
68
Collection<
AttachmentSet
>? attachmentSets,
76
AttachmentSets = attachmentSets ?? new Collection<
AttachmentSet
>(); // Ensuring attachmentSets are not null, so that new attachmentSets can be combined whenever required.
111
public Collection<
AttachmentSet
> AttachmentSets { get; private set; }
Client\Interfaces\IInternalTestRunEventsHandler.cs (1)
23
void HandleTestRunComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<
AttachmentSet
>? runContextAttachments, ICollection<string>? executorUris);
Client\Interfaces\ITestRunAttachmentsProcessingEventsHandler.cs (2)
18
void HandleTestRunAttachmentsProcessingComplete(TestRunAttachmentsProcessingCompleteEventArgs attachmentsProcessingCompleteEventArgs, IEnumerable<
AttachmentSet
>? lastChunk);
24
void HandleProcessedAttachmentsChunk(IEnumerable<
AttachmentSet
> attachments);
Client\Interfaces\ITestRunEventsHandler.cs (1)
22
void HandleTestRunComplete(TestRunCompleteEventArgs testRunCompleteArgs, TestRunChangedEventArgs? lastChunkArgs, ICollection<
AttachmentSet
>? runContextAttachments, ICollection<string>? executorUris);
Client\Payloads\TestRunAttachmentsProcessingPayload.cs (1)
18
public IEnumerable<
AttachmentSet
>? Attachments { get; set; }
DataCollector\IDataCollectorAttachmentProcessor.cs (2)
50
Task<ICollection<
AttachmentSet
>> ProcessAttachmentSetsAsync(XmlElement configurationElement, ICollection<
AttachmentSet
> attachments, IProgress<int> progressReporter, IMessageLogger logger, CancellationToken cancellationToken);
DataCollector\IDataCollectorAttachments.cs (2)
19
ICollection<
AttachmentSet
> HandleDataCollectionAttachmentSets(ICollection<
AttachmentSet
> dataCollectionAttachments);
TestResult.cs (2)
30
Attachments = new Collection<
AttachmentSet
>();
48
public Collection<
AttachmentSet
> Attachments { get; private set; }
vstest.console (1)
Internal\ConsoleLogger.cs (1)
691
foreach (
var
attachmentSet in e.AttachmentSets)
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
691
foreach (
var
attachmentSet in e.AttachmentSets)