|
// <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
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria>? _TestRunCriteria;
/// <summary>
/// Defines the source generated JSON serialization contract metadata for a given type.
/// </summary>
#nullable disable annotations // Marking the property type as nullable-oblivious.
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria> TestRunCriteria
#nullable enable annotations
{
get => _TestRunCriteria ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria> Create_TestRunCriteria(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria>
{
ObjectCreator = null,
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => TestRunCriteriaPropInit(options),
ConstructorParameterMetadataInitializer = null,
ConstructorAttributeProviderFactory = null,
SerializeHandler = TestRunCriteriaSerializeHandler,
PolymorphismOptions = new global::System.Text.Json.Serialization.Metadata.JsonPolymorphismOptions(),
TypeClassifierFactory = null,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] TestRunCriteriaPropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[14];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<string>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)obj).Sources,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Sources",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("Sources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<string>>(options, info0);
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)obj).AdapterSourceMap,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "AdapterSourceMap",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("AdapterSourceMap", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>>(options, info1);
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)obj).Tests,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Tests",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("Tests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>(options, info2);
var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)obj).TestCaseFilter,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "TestCaseFilter",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("TestCaseFilter", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info3);
var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.FilterOptions>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)obj).FilterOptions,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "FilterOptions",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("FilterOptions", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.FilterOptions), global::System.Array.Empty<global::System.Type>(), null),
};
properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.FilterOptions>(options, info4);
var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)obj).TestSessionInfo,
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)obj).TestSessionInfo = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "TestSessionInfo",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("TestSessionInfo", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo), global::System.Array.Empty<global::System.Type>(), null),
};
properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo>(options, info5);
var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)obj).DebugEnabledForTestSession,
Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)obj).DebugEnabledForTestSession = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "DebugEnabledForTestSession",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("DebugEnabledForTestSession", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info6);
var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)obj).HasSpecificTests,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "HasSpecificTests",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("HasSpecificTests", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info7);
var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)obj).HasSpecificSources,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "HasSpecificSources",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("HasSpecificSources", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info8);
var info9 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria)obj).KeepAlive,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "KeepAlive",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria).GetProperty("KeepAlive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info9);
var info10 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria)obj).TestRunSettings,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "TestRunSettings",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria).GetProperty("TestRunSettings", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[10] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info10);
var info11 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Interfaces.ITestHostLauncher>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria)obj).TestHostLauncher,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "TestHostLauncher",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria).GetProperty("TestHostLauncher", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Interfaces.ITestHostLauncher), global::System.Array.Empty<global::System.Type>(), null),
};
properties[11] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Interfaces.ITestHostLauncher>(options, info11);
var info12 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<long>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria)obj).FrequencyOfRunStatsChangeEvent,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "FrequencyOfRunStatsChangeEvent",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria).GetProperty("FrequencyOfRunStatsChangeEvent", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
};
properties[12] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<long>(options, info12);
var info13 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.TimeSpan>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria)obj).RunStatsChangeEventTimeout,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "RunStatsChangeEventTimeout",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria).GetProperty("RunStatsChangeEventTimeout", InstanceMemberBindingFlags, null, typeof(global::System.TimeSpan), global::System.Array.Empty<global::System.Type>(), null),
};
properties[13] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.TimeSpan>(options, info13);
return properties;
}
// Intentionally not a static method because we create a delegate to it. Invoking delegates to instance
// methods is almost as fast as virtual calls. Static methods need to go through a shuffle thunk.
private void TestRunCriteriaSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria? value)
{
if (value is null)
{
writer.WriteNullValue();
return;
}
writer.WriteStartObject();
writer.WritePropertyName(PropName_Sources);
IEnumerableStringSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)value).Sources);
writer.WritePropertyName(PropName_AdapterSourceMap);
DictionaryStringIEnumerableStringSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)value).AdapterSourceMap);
writer.WritePropertyName(PropName_Tests);
IEnumerableTestCaseSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)value).Tests);
writer.WriteString(PropName_TestCaseFilter, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)value).TestCaseFilter);
writer.WritePropertyName(PropName_FilterOptions);
FilterOptionsSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)value).FilterOptions);
writer.WritePropertyName(PropName_TestSessionInfo);
TestSessionInfoSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)value).TestSessionInfo);
writer.WriteBoolean(PropName_DebugEnabledForTestSession, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)value).DebugEnabledForTestSession);
writer.WriteBoolean(PropName_HasSpecificTests, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)value).HasSpecificTests);
writer.WriteBoolean(PropName_HasSpecificSources, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria)value).HasSpecificSources);
writer.WriteBoolean(PropName_KeepAlive, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria)value).KeepAlive);
writer.WriteString(PropName_TestRunSettings, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria)value).TestRunSettings);
writer.WritePropertyName(PropName_TestHostLauncher);
ITestHostLauncherSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria)value).TestHostLauncher);
writer.WriteNumber(PropName_FrequencyOfRunStatsChangeEvent, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria)value).FrequencyOfRunStatsChangeEvent);
writer.WritePropertyName(PropName_RunStatsChangeEventTimeout);
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria)value).RunStatsChangeEventTimeout, TimeSpan);
writer.WriteEndObject();
}
}
}
|