// enum test
[InlineData("Constructor", typeof(AttributeTargets))]
[InlineData("CA761232-ED42-11CE-BACD-00AA0057B223", typeof(Guid))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))]
public void CanReadAllSupportedTypes(string value, Type type)
{
// arrange
[InlineData(typeof(TimeSpan))]
[InlineData(typeof(AttributeTargets))]
[InlineData(typeof(Guid))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))]
public void ConsistentExceptionOnFailedBinding(Type type)
{
// arrange
[InlineData("method", typeof(string), new Type[] { typeof(char?) })]
[InlineData("Method", typeof(string), new Type[] { typeof(GenericClass2<,>), typeof(GenericClass2<,>) })]
[InlineData("Method", typeof(string), new Type[] { typeof(TestInterface) })]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))]
public void String_Type_TypeArray_Module(string name, Type returnType, Type[] parameterTypes)
{
Module module = typeof(TestClass).GetTypeInfo().Module;
[Theory]
[InlineData(typeof(ConstructorInfoInvoke), new Type[] { typeof(int) })]
[InlineData(typeof(string), new Type[] { typeof(char), typeof(int) })]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))]
public void Properties(Type type, Type[] typeParameters)
{
ConstructorInfo constructor = TypeExtensions.GetConstructor(type, typeParameters);
[Theory]
[InlineData(null)]
[InlineData(typeof(int))]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))]
public void Ctor_RequiredContract(Type requiredContract)
{
var attribute = new RequiredAttributeAttribute(requiredContract);
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Linq.Queryable\tests\System.Linq.Queryable.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Diagnostics.Tracing/tests/System.Diagnostics.Tracing.Tests.csproj" />
- <!-- Issue: https://github.com/dotnet/runtime/issues/51211 -->
- <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.CompilerServices.VisualC\tests\System.Runtime.CompilerServices.VisualC.Tests.csproj" />
- <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Reflection.TypeExtensions\tests\System.Reflection.TypeExtensions.Tests.csproj" />
- <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Reflection.Emit.Lightweight\tests\System.Reflection.Emit.Lightweight.Tests.csproj" />
- <ProjectExclusions Include="$(MSBuildThisFileDirectory)Microsoft.Extensions.Configuration.Binder\tests\Microsoft.Extensions.Configuration.Binder.Tests.csproj" />
-
<!-- Issue: https://github.com/dotnet/runtime/issues/51602 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.ComponentModel.Primitives\tests\System.ComponentModel.Primitives.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.ObjectModel\tests\System.ObjectModel.Tests.csproj" />