Mark individual tests for 51211 (#57463)
authorLarry Ewing <lewing@microsoft.com>
Mon, 16 Aug 2021 18:43:18 +0000 (13:43 -0500)
committerGitHub <noreply@github.com>
Mon, 16 Aug 2021 18:43:18 +0000 (13:43 -0500)
src/libraries/Microsoft.Extensions.Configuration.Binder/tests/ConfigurationBinderTests.cs
src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodCtor.cs
src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoTests.cs
src/libraries/System.Runtime.CompilerServices.VisualC/tests/System/Runtime/CompilerServices/RequiredAttributeAttributeTests.cs
src/libraries/tests.proj

index d4014ad..c5dbd9d 100644 (file)
@@ -401,6 +401,7 @@ namespace Microsoft.Extensions.Configuration.Binder.Test
         // 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
@@ -447,6 +448,7 @@ namespace Microsoft.Extensions.Configuration.Binder.Test
         [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
index 45edc4b..28429f8 100644 (file)
@@ -25,6 +25,7 @@ namespace System.Reflection.Emit.Tests
         [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;
index 5ce72be..fdeb799 100644 (file)
@@ -80,6 +80,7 @@ namespace System.Reflection.Tests
         [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);
index e1788cd..75c6897 100644 (file)
@@ -10,6 +10,7 @@ namespace System.Runtime.CompilerServices.Tests
         [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);
index 5e8f9b5..1673ba2 100644 (file)
     <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" />