[wasm] Enable System.ComponentModel.TypeConverter test suite (#39710)
authorMaxim Lipnin <v-maxlip@microsoft.com>
Tue, 21 Jul 2020 19:30:28 +0000 (22:30 +0300)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2020 19:30:28 +0000 (21:30 +0200)
src/libraries/System.ComponentModel.TypeConverter/tests/Security/Authentication/ExtendedProtection/ExtendedProtectionPolicyTypeConverterTests.cs
src/libraries/System.ComponentModel.TypeConverter/tests/XTypeDescriptionProviderTests.cs
src/libraries/tests.proj

index 55bf149..a091103 100644 (file)
@@ -30,12 +30,14 @@ namespace System.Security.Authentication.ExtendedProtection.Tests
         }
 
         [Fact]
+        [PlatformSpecific(~TestPlatforms.Browser)] // System.Net.Security is not supported on this platform.
         public void ConvertTo_NullTypeTests()
         {
             Assert.Throws<ArgumentNullException>(() => converter.ConvertTo(null, CultureInfo.InvariantCulture, new ExtendedProtectionPolicy(PolicyEnforcement.Never), null));
         }
 
         [Fact]
+        [PlatformSpecific(~TestPlatforms.Browser)] // System.Net.Security is not supported on this platform.
         public void ConvertTo_PositiveTests()
         {
             ExtendedProtectionPolicy policy = new ExtendedProtectionPolicy(PolicyEnforcement.Never);
@@ -55,6 +57,7 @@ namespace System.Security.Authentication.ExtendedProtection.Tests
         }
 
         [Theory]
+        [PlatformSpecific(~TestPlatforms.Browser)] // System.Net.Security is not supported on this platform.
         [InlineData(typeof(int))]
         [InlineData(typeof(ExtendedProtectionPolicy))]
         [InlineData(typeof(bool))]
index 7dde31b..2b176d8 100644 (file)
@@ -10,6 +10,7 @@ using Xunit;
 
 namespace System.Xml.Linq.Tests
 {
+    [ActiveIssue("https://github.com/dotnet/runtime/issues/39709", TestPlatforms.Browser)]
     public class XTypeDescriptionProviderTests
     {
         [Fact]
index d069428..fdd0e1e 100644 (file)
@@ -22,7 +22,6 @@
 
   <ItemGroup Condition="'$(TargetOS)' == 'Browser' and '$(RunDisabledWasmTests)' != 'true'">
     <!-- Builds currently do not pass -->
-    <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.ComponentModel.TypeConverter\tests\System.ComponentModel.TypeConverter.Tests.csproj" />
     <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Data.Common\tests\System.Data.Common.Tests.csproj" />
     <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Diagnostics.DiagnosticSource\tests\TestWithConfigSwitches\System.Diagnostics.DiagnosticSource.Switches.Tests.csproj" />