src/Compilers/Server/VBCSCompilerTests/CompilerServerTests.cs
/// <summary>
/// This method tests that when a 64-bit compiler server loads a 
/// 64-bit mscorlib with /platform:x86 enabled no warning about
/// emitting a reference to a 64-bit assembly is produced.
/// The test should pass on x86 or amd64, but can only fail on
/// amd64.
/// </summary>
This method tests that when a 64-bit compiler server loads a
64-bit mscorlib with /platform:x86 enabled no warning about
emitting a reference to a 64-bit assembly is produced.
The test should pass on x86 or amd64, but can only fail on
amd64.
This method tests that when a 64 - bit compiler server loads a 64 - bit mscorlib with / platform : x86 enabled no warning about emitting a reference to a 64 - bit assembly is produced . The test should pass on x86 or amd64 but can only fail on amd64 .
[Fact]
        [Trait(Traits.Environment, Traits.Environments.VSProductInstall)]
        public async Task Platformx86MscorlibCsc()
        {
            using (var serverData = ServerUtil.CreateServer())
            {
                var files = new Dictionary<string, string> { { "c.cs", "class C {}" } };
                var result = RunCommandLineCompiler(CSharpCompilerClientExecutable,
                                                    $"/shared:{serverData.PipeName} /nologo /t:library /platform:x86 c.cs",
                                                    _tempDirectory,
                                                    files);
                VerifyResult(result);
                await serverData.Verify(connections: 1, completed: 1).ConfigureAwait(true);
            }
        }
[ Fact ] [ Trait ( Traits . Environment , Traits . Environments . VSProductInstall ) ] public async Task Platformx86MscorlibCsc ( ) { using ( var serverData = ServerUtil . CreateServer ( ) ) { var files = new Dictionary < string , string > { { " " , " " } } ; var result = RunCommandLineCompiler ( CSharpCompilerClientExecutable , $" /shared: { serverData . PipeName }  /nologo /t:library /platform:x86 c.cs " , _tempDirectory , files ) ; VerifyResult ( result ) ; await serverData . Verify ( connections : 1 , completed : 1 ) . ConfigureAwait ( true ) ; } }
This method tests that when a 64-bit compiler server loads a
64-bit mscorlib with /platform:x86 enabled no warning about
emitting a reference to a 64-bit assembly is produced.
This method tests that when a 64 - bit compiler server loads a 64 - bit mscorlib with / platform : x86 enabled no warning about emitting a reference to a 64 - bit assembly is produced .