Preserve necessary type and method (#54932)
authorFan Yang <52458914+fanyang-mono@users.noreply.github.com>
Thu, 1 Jul 2021 17:11:09 +0000 (13:11 -0400)
committerGitHub <noreply@github.com>
Thu, 1 Jul 2021 17:11:09 +0000 (13:11 -0400)
* Preserve necessary type and method

* Change the way of getting the type

* Inline the constants

* Enable NonValidated_ValidAndInvalidValues_DictionaryMembersWork

* Enable TransformStrStrResolver3

eng/testing/ILLink.Descriptor.xunit.xml
src/libraries/System.Net.Http/tests/UnitTests/Headers/HttpHeadersTest.cs
src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs
src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/IDispatchImplAttributeTests.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CollectionTests/CollectionTests.Generic.Write.cs

index 8e6986d..9866068 100644 (file)
     <namespace fullname="Xunit" />
     <namespace fullname="Xunit.Sdk" />
   </assembly>
+  <assembly fullname="xunit.assert">
+    <type fullname="Xunit.Sdk.AssertEqualityComparer`1">
+      <method signature="System.Boolean CompareTypedSets(System.Collections.IEnumerable,System.Collections.IEnumerable)" />
+    </type>
+  </assembly>
   <assembly fullname="xunit.runner.utility.netcoreapp10" />
 </linker>
index 2a25ea7..2486e8b 100644 (file)
@@ -1501,7 +1501,6 @@ namespace System.Net.Http.Tests
             }
         }
 
-        [ActiveIssue("https://github.com/dotnet/runtime/issues/53647", TestPlatforms.Browser)]
         [Fact]
         public void NonValidated_ValidAndInvalidValues_DictionaryMembersWork()
         {
index 878eb87..54d1fd9 100644 (file)
@@ -3002,7 +3002,6 @@ namespace System.Xml.Tests
         }
 
         //[Variation("Pass XmlUrlResolver, load style sheet with document function, should resolve during transform", Param = "xmlResolver_document_function.txt")]
-        [ActiveIssue("https://github.com/dotnet/runtime/issues/51911", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))]
         [InlineData("xmlResolver_document_function.txt", XslInputType.Reader, ReaderType.XmlValidatingReader)]
         [InlineData("xmlResolver_document_function.txt", XslInputType.URI, ReaderType.XmlValidatingReader)]
         [InlineData("xmlResolver_document_function.txt", XslInputType.Navigator, ReaderType.XmlValidatingReader)]
index 59274bd..ac19212 100644 (file)
@@ -8,18 +8,14 @@ namespace System.Runtime.InteropServices.Tests
 {
     public class IDispatchImplAttributeTests
     {
-        private const string TypeName = "System.Runtime.InteropServices.IDispatchImplAttribute";
-        private const string ValueName = "Value";
-
         [Theory]
-        [ActiveIssue("https://github.com/dotnet/runtime/issues/50717", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))]
         [InlineData(-1)]
         [InlineData(0)]
         [InlineData(2)]
         public void Ctor_ImplTypeShort(short implType)
         {
-            Type type = typeof(HandleCollector).Assembly.GetType(TypeName);
-            PropertyInfo valueProperty = type.GetProperty(ValueName);
+            Type type = Type.GetType("System.Runtime.InteropServices.IDispatchImplAttribute, System.Runtime.InteropServices");
+            PropertyInfo valueProperty = type.GetProperty("Value");
             Assert.NotNull(type);
             Assert.NotNull(valueProperty);
 
index 33fc759..e6963f2 100644 (file)
@@ -633,7 +633,6 @@ namespace System.Text.Json.Serialization.Tests
         }
 
         [Fact]
-        [ActiveIssue("https://github.com/dotnet/runtime/issues/50721", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))]
         public static void WriteHashSetTOfHashSetT()
         {
             HashSet<HashSet<int>> input = new HashSet<HashSet<int>>(new List<HashSet<int>>