|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities
{
internal partial class TestPlatformJsonContext : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver
{
/// <inheritdoc/>
public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type)
{
Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo);
return typeInfo;
}
global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
{
if (type == typeof(bool))
{
return Create_Boolean(options);
}
if (type == typeof(double))
{
return Create_Double(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.Common.DataCollection.AfterTestRunEndResult))
{
return Create_AfterTestRunEndResult(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.Common.DataCollection.BeforeTestRunStartResult))
{
return Create_BeforeTestRunStartResult(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.MessageEnvelope))
{
return Create_MessageEnvelope(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload>))
{
return Create_PayloadedMessageDiscoveryCompletePayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestMessagePayload>))
{
return Create_PayloadedMessageTestMessagePayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingCompletePayload>))
{
return Create_PayloadedMessageTestRunAttachmentsProcessingCompletePayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingProgressPayload>))
{
return Create_PayloadedMessageTestRunAttachmentsProcessingProgressPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunCompletePayload>))
{
return Create_PayloadedMessageTestRunCompletePayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionAckPayload>))
{
return Create_PayloadedMessageStartTestSessionAckPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StopTestSessionAckPayload>))
{
return Create_PayloadedMessageStopTestSessionAckPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs>))
{
return Create_PayloadedMessageTestRunChangedEventArgs(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.EditorAttachDebuggerPayload>))
{
return Create_PayloadedMessageEditorAttachDebuggerPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TelemetryEvent>))
{
return Create_PayloadedMessageTelemetryEvent(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessStartInfo>))
{
return Create_PayloadedMessageTestProcessStartInfo(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>))
{
return Create_PayloadedMessageIEnumerableTestCase(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>))
{
return Create_PayloadedMessageListTestCase(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<int>))
{
return Create_PayloadedMessageInt32(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.VersionedMessageEnvelope))
{
return Create_VersionedMessageEnvelope(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.VersionedMessageForSerialization))
{
return Create_VersionedMessageForSerialization(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.BeforeTestRunStartPayload))
{
return Create_BeforeTestRunStartPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload))
{
return Create_DiscoveryCompletePayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestHostLaunchedPayload))
{
return Create_TestHostLaunchedPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestMessagePayload))
{
return Create_TestMessagePayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingCompletePayload))
{
return Create_TestRunAttachmentsProcessingCompletePayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingProgressPayload))
{
return Create_TestRunAttachmentsProcessingProgressPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunCompletePayload))
{
return Create_TestRunCompletePayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunStatsPayload))
{
return Create_TestRunStatsPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet))
{
return Create_AttachmentSet(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.CustomHostLaunchAckPayload))
{
return Create_CustomHostLaunchAckPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryCriteria))
{
return Create_DiscoveryCriteria(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryRequestPayload))
{
return Create_DiscoveryRequestPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.EditorAttachDebuggerAckPayload))
{
return Create_EditorAttachDebuggerAckPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.FilterOptions))
{
return Create_FilterOptions(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Interfaces.ITestHostLauncher))
{
return Create_ITestHostLauncher(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics))
{
return Create_ITestRunStatistics(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionAckPayload))
{
return Create_StartTestSessionAckPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionPayload))
{
return Create_StartTestSessionPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StopTestSessionAckPayload))
{
return Create_StopTestSessionAckPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StopTestSessionPayload))
{
return Create_StopTestSessionPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.StartTestSessionCompleteEventArgs))
{
return Create_StartTestSessionCompleteEventArgs(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.StopTestSessionCompleteEventArgs))
{
return Create_StopTestSessionCompleteEventArgs(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestPlatformOptions))
{
return Create_TestPlatformOptions(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingCompleteEventArgs))
{
return Create_TestRunAttachmentsProcessingCompleteEventArgs(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingPayload))
{
return Create_TestRunAttachmentsProcessingPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingProgressEventArgs))
{
return Create_TestRunAttachmentsProcessingProgressEventArgs(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs))
{
return Create_TestRunChangedEventArgs(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs))
{
return Create_TestRunCompleteEventArgs(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria))
{
return Create_TestRunCriteria(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload))
{
return Create_TestRunRequestPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics))
{
return Create_TestRunStatistics(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo))
{
return Create_TestSessionInfo(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.EditorAttachDebuggerPayload))
{
return Create_EditorAttachDebuggerPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.InvokedDataCollector))
{
return Create_InvokedDataCollector(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging.TestMessageLevel))
{
return Create_TestMessageLevel(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TelemetryEvent))
{
return Create_TelemetryEvent(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase))
{
return Create_TestCase(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase[]))
{
return Create_TestCaseArray(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject))
{
return Create_TestObject(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestOutcome))
{
return Create_TestOutcome(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessAttachDebuggerPayload))
{
return Create_TestProcessAttachDebuggerPayload(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessStartInfo))
{
return Create_TestProcessStartInfo(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty))
{
return Create_TestProperty(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPropertyAttributes))
{
return Create_TestPropertyAttributes(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult))
{
return Create_TestResult(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResultMessage))
{
return Create_TestResultMessage(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait))
{
return Create_Trait(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TraitCollection))
{
return Create_TraitCollection(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.UriDataAttachment))
{
return Create_UriDataAttachment(options);
}
if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.ValidateValueCallback))
{
return Create_ValidateValueCallback(options);
}
if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>))
{
return Create_DictionaryStringHashSetString(options);
}
if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>))
{
return Create_DictionaryStringIEnumerableString(options);
}
if (type == typeof(global::System.Collections.Generic.Dictionary<string, object>))
{
return Create_DictionaryStringObject(options);
}
if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
{
return Create_DictionaryStringString(options);
}
if (type == typeof(global::System.Collections.Generic.HashSet<string>))
{
return Create_HashSetString(options);
}
if (type == typeof(global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>))
{
return Create_ICollectionAttachmentSet(options);
}
if (type == typeof(global::System.Collections.Generic.ICollection<global::System.Uri>))
{
return Create_ICollectionUri(options);
}
if (type == typeof(global::System.Collections.Generic.ICollection<string>))
{
return Create_ICollectionString(options);
}
if (type == typeof(global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestOutcome, long>))
{
return Create_IDictionaryTestOutcomeInt64(options);
}
if (type == typeof(global::System.Collections.Generic.IDictionary<string, object>))
{
return Create_IDictionaryStringObject(options);
}
if (type == typeof(global::System.Collections.Generic.IDictionary<string, string>))
{
return Create_IDictionaryStringString(options);
}
if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>))
{
return Create_IEnumerableAttachmentSet(options);
}
if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.InvokedDataCollector>))
{
return Create_IEnumerableInvokedDataCollector(options);
}
if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>))
{
return Create_IEnumerableTestCase(options);
}
if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>))
{
return Create_IEnumerableTestProperty(options);
}
if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult>))
{
return Create_IEnumerableTestResult(options);
}
if (type == typeof(global::System.Collections.Generic.IEnumerable<string>))
{
return Create_IEnumerableString(options);
}
if (type == typeof(global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.UriDataAttachment>))
{
return Create_IListUriDataAttachment(options);
}
if (type == typeof(global::System.Collections.Generic.IList<string>))
{
return Create_IListString(options);
}
if (type == typeof(global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>))
{
return Create_KeyValuePairTestPropertyObject(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>))
{
return Create_ListAttachmentSet(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>))
{
return Create_ListTestCase(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>))
{
return Create_ListKeyValuePairTestPropertyObject(options);
}
if (type == typeof(global::System.Collections.Generic.List<string>))
{
return Create_ListString(options);
}
if (type == typeof(global::System.Collections.IDictionary))
{
return Create_IDictionary(options);
}
if (type == typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>))
{
return Create_CollectionAttachmentSet(options);
}
if (type == typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.InvokedDataCollector>))
{
return Create_CollectionInvokedDataCollector(options);
}
if (type == typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResultMessage>))
{
return Create_CollectionTestResultMessage(options);
}
if (type == typeof(global::System.DateTimeOffset))
{
return Create_DateTimeOffset(options);
}
if (type == typeof(global::System.Exception))
{
return Create_Exception(options);
}
if (type == typeof(global::System.Guid))
{
return Create_Guid(options);
}
if (type == typeof(global::System.Reflection.MethodBase))
{
return Create_MethodBase(options);
}
if (type == typeof(global::System.Text.Json.JsonElement))
{
return Create_JsonElement(options);
}
if (type == typeof(global::System.Text.Json.JsonElement?))
{
return Create_NullableJsonElement(options);
}
if (type == typeof(global::System.TimeSpan))
{
return Create_TimeSpan(options);
}
if (type == typeof(global::System.Uri))
{
return Create_Uri(options);
}
if (type == typeof(int))
{
return Create_Int32(options);
}
if (type == typeof(long))
{
return Create_Int64(options);
}
if (type == typeof(object))
{
return Create_Object(options);
}
if (type == typeof(string))
{
return Create_String(options);
}
return null;
}
}
}
|