[wasm] Enable System.CodeDom.Tests test suite (#39626)
authorMaxim Lipnin <v-maxlip@microsoft.com>
Mon, 20 Jul 2020 19:11:37 +0000 (22:11 +0300)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2020 19:11:37 +0000 (21:11 +0200)
Part of https://github.com/dotnet/runtime/issues/38422.

src/libraries/System.CodeDom/tests/System/CodeDom/Compiler/CompilerResultsTests.cs
src/libraries/tests.proj

index a88143c..71158fa 100644 (file)
@@ -31,7 +31,7 @@ namespace System.CodeDom.Compiler.Tests
         [Fact]
         public void CompiledAssembly_GetWithPathToAssemblySet_ReturnsExpectedAssembly()
         {
-            var results = new CompilerResults(null) { PathToAssembly = typeof(CompilerResultsTests).Assembly.Location };
+            var results = new CompilerResults(null) { PathToAssembly = (PlatformDetection.IsBrowser ? "/" : string.Empty) + typeof(CompilerResultsTests).Assembly.Location };
 
             Assert.NotNull(results.CompiledAssembly);
             Assert.Equal(typeof(CompilerResultsTests).Assembly.FullName, results.CompiledAssembly.FullName);
index b11eb01..0473fc6 100644 (file)
@@ -22,7 +22,6 @@
 
   <ItemGroup Condition="'$(TargetOS)' == 'Browser' and '$(RunDisabledWasmTests)' != 'true'">
     <!-- Builds currently do not pass -->
-    <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.CodeDom\tests\System.CodeDom.Tests.csproj" />
     <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" />