Skip System.Configuration.ConfigurationManager tests on WASM (#38749)
authorMaxim Lipnin <v-maxlip@microsoft.com>
Sat, 4 Jul 2020 13:58:43 +0000 (16:58 +0300)
committerGitHub <noreply@github.com>
Sat, 4 Jul 2020 13:58:43 +0000 (15:58 +0200)
src/libraries/System.Configuration.ConfigurationManager/tests/AssemblyInfo.cs [new file with mode: 0644]
src/libraries/System.Configuration.ConfigurationManager/tests/System.Configuration.ConfigurationManager.Tests.csproj
src/libraries/tests.proj

diff --git a/src/libraries/System.Configuration.ConfigurationManager/tests/AssemblyInfo.cs b/src/libraries/System.Configuration.ConfigurationManager/tests/AssemblyInfo.cs
new file mode 100644 (file)
index 0000000..d76d58d
--- /dev/null
@@ -0,0 +1,8 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using System;
+using Xunit;
+
+[assembly: SkipOnMono("System.Configuration.ConfigurationManager is not supported on WASM", TestPlatforms.Browser)]
\ No newline at end of file
index 77b8fba..e4572e3 100644 (file)
@@ -23,6 +23,7 @@
              Link="Source\UrlPath.cs" />
     <Compile Include="..\src\System\Configuration\ValidatorUtils.cs"
              Link="Source\ValidatorUtils.cs" />
+    <Compile Include="AssemblyInfo.cs" />
     <Compile Include="Mono\CallbackValidatorTest.cs" />
     <Compile Include="Mono\CommaDelimitedStringCollectionConverterTest.cs" />
     <Compile Include="Mono\CommaDelimitedStringCollectionTest.cs" />
index d481b5d..84ba206 100644 (file)
@@ -22,7 +22,6 @@
 
   <ItemGroup Condition="'$(TargetOS)' == 'Browser' and '$(RunDisabledWasmTests)' != 'true'">
     <!-- Builds and runs but fails hard enough to not produce any output XML -->
-    <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Configuration.ConfigurationManager\tests\System.Configuration.ConfigurationManager.Tests.csproj" />
     <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.Http.Json\tests\FunctionalTests\System.Net.Http.Json.Functional.Tests.csproj" />
     <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.NetworkInformation\tests\FunctionalTests\System.Net.NetworkInformation.Functional.Tests.csproj" />
     <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.WebClient\tests\System.Net.WebClient.Tests.csproj" />