1 instantiation of TestResultMessage
Microsoft.TestPlatform.CommunicationUtilities (1)
_generated\66\TestPlatformJsonContext.TestResultMessage.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
((string)args[0], (string)args[1]),
84 references to TestResultMessage
Microsoft.TestPlatform.CommunicationUtilities (38)
_generated\112\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (2)
286
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
))
414
if (type == typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>))
_generated\65\TestPlatformJsonContext.TestResult.g.cs (3)
175
var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>>
190
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("Messages", InstanceMemberBindingFlags, null, typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>), global::System.Array.Empty<global::System.Type>(), null),
193
properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>>(options, info6);
_generated\66\TestPlatformJsonContext.TestResultMessage.g.cs (19)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>? _TestResultMessage;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
> TestResultMessage
22
get => _TestResultMessage ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
> Create_TestResultMessage(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string)}, modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
),
60
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
)obj).Category,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
).GetProperty("Category", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
79
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
),
81
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
)obj).Text,
89
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
).GetProperty("Text", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
99
private void TestResultMessageSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
? value)
109
writer.WriteString(PropName_Category, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
)value).Category);
110
writer.WriteString(PropName_Text, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
)value).Text);
_generated\98\TestPlatformJsonContext.CollectionTestResultMessage.g.cs (12)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>>? _CollectionTestResultMessage;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>> CollectionTestResultMessage
22
get => _CollectionTestResultMessage ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>>)Options.GetTypeInfo(typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>> Create_CollectionTestResultMessage(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>>
31
ObjectCreator = () => new global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>(),
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIListInfo<global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>(options, info);
47
private void CollectionTestResultMessageSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.
TestResultMessage
>? value)
Serialization\TestResultConverter.cs (1)
49
testResult.Messages.Add(StjSafe.Deserialize<
TestResultMessage
>(message, options)!);
Serialization\TestResultConverterV2.cs (1)
52
testResult.Messages.Add(StjSafe.Deserialize<
TestResultMessage
>(message, options)!);
Microsoft.VisualStudio.TestPlatform.Common (1)
Logging\InternalTestLoggerEvents.cs (1)
421
foreach (
TestResultMessage
msg in args.Result.Messages)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
Utility\Converter.cs (5)
239
foreach (
TestResultMessage
message in testResult.Messages)
241
if (
TestResultMessage
.AdditionalInfoCategory.Equals(message.Category, StringComparison.OrdinalIgnoreCase))
245
else if (
TestResultMessage
.DebugTraceCategory.Equals(message.Category, StringComparison.OrdinalIgnoreCase))
249
else if (
TestResultMessage
.StandardErrorCategory.Equals(message.Category, StringComparison.OrdinalIgnoreCase))
253
else if (
TestResultMessage
.StandardOutCategory.Equals(message.Category, StringComparison.OrdinalIgnoreCase))
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
TestResult.cs (4)
29
Messages = new Collection<
TestResultMessage
>();
78
public Collection<
TestResultMessage
> Messages { get; private set; }
149
foreach (
TestResultMessage
message in Messages)
252
/// Initializes a new instance of the <see cref="
TestResultMessage
"/> class.
vstest.console (18)
Internal\ConsoleLogger.cs (9)
259
private static string GetFormattedOutput(Collection<
TestResultMessage
> testMessageCollection)
267
foreach (
var
message in testMessageCollection)
283
private static Collection<
TestResultMessage
> GetTestMessages(Collection<
TestResultMessage
> messages, string requiredCategory)
286
var requiredMessageCollection = new Collection<
TestResultMessage
>(selectedMessages.ToList());
317
var stdOutMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.StandardOutCategory);
330
var stdErrMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.StandardErrorCategory);
343
var dbgTrcMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.DebugTraceCategory);
356
var addnlInfoMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.AdditionalInfoCategory);
Internal\MSBuildLogger.cs (9)
310
private static Collection<
TestResultMessage
> GetTestMessages(Collection<
TestResultMessage
> messages, string requiredCategory)
313
var requiredMessageCollection = new Collection<
TestResultMessage
>(selectedMessages.ToList());
322
var stdOutMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.StandardOutCategory);
329
var stdErrMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.StandardErrorCategory);
336
var dbgTrcMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.DebugTraceCategory);
343
var addnlInfoMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.AdditionalInfoCategory);
351
private static void AddFormattedOutput(Collection<
TestResultMessage
> testMessageCollection, StringBuilder stringBuilder)
359
foreach (
var
message in testMessageCollection)
vstest.console.arm64 (18)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (9)
259
private static string GetFormattedOutput(Collection<
TestResultMessage
> testMessageCollection)
267
foreach (
var
message in testMessageCollection)
283
private static Collection<
TestResultMessage
> GetTestMessages(Collection<
TestResultMessage
> messages, string requiredCategory)
286
var requiredMessageCollection = new Collection<
TestResultMessage
>(selectedMessages.ToList());
317
var stdOutMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.StandardOutCategory);
330
var stdErrMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.StandardErrorCategory);
343
var dbgTrcMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.DebugTraceCategory);
356
var addnlInfoMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.AdditionalInfoCategory);
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (9)
310
private static Collection<
TestResultMessage
> GetTestMessages(Collection<
TestResultMessage
> messages, string requiredCategory)
313
var requiredMessageCollection = new Collection<
TestResultMessage
>(selectedMessages.ToList());
322
var stdOutMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.StandardOutCategory);
329
var stdErrMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.StandardErrorCategory);
336
var dbgTrcMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.DebugTraceCategory);
343
var addnlInfoMessagesCollection = GetTestMessages(result.Messages,
TestResultMessage
.AdditionalInfoCategory);
351
private static void AddFormattedOutput(Collection<
TestResultMessage
> testMessageCollection, StringBuilder stringBuilder)
359
foreach (
var
message in testMessageCollection)