diff options
author | Maxim Lipnin <v-maxlip@microsoft.com> | 2020-07-15 20:00:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 20:00:26 +0300 |
commit | 687177bba23b00df733bbfec8668f83aa6add20e (patch) | |
tree | f67ecb0095ffc5f1e6a2bdcc751fb5e36dafb9ca /src/libraries/System.Net.Security/tests/UnitTests | |
parent | 36a9444f7fc342476a65ff03c5c0461c9f5dc029 (diff) |
[wasm] Modify System.Net.Security to throw PNSE (#39358)
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Diffstat (limited to 'src/libraries/System.Net.Security/tests/UnitTests')
-rw-r--r-- | src/libraries/System.Net.Security/tests/UnitTests/AssemblyInfo.cs | 6 | ||||
-rw-r--r-- | src/libraries/System.Net.Security/tests/UnitTests/System.Net.Security.Unit.Tests.csproj | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/libraries/System.Net.Security/tests/UnitTests/AssemblyInfo.cs b/src/libraries/System.Net.Security/tests/UnitTests/AssemblyInfo.cs new file mode 100644 index 00000000000..766d39919ff --- /dev/null +++ b/src/libraries/System.Net.Security/tests/UnitTests/AssemblyInfo.cs @@ -0,0 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Xunit; + +[assembly: SkipOnMono("System.Net.Security is not supported on Browser", TestPlatforms.Browser)]
\ No newline at end of file diff --git a/src/libraries/System.Net.Security/tests/UnitTests/System.Net.Security.Unit.Tests.csproj b/src/libraries/System.Net.Security/tests/UnitTests/System.Net.Security.Unit.Tests.csproj index 2323a9323b5..8379fd48c47 100644 --- a/src/libraries/System.Net.Security/tests/UnitTests/System.Net.Security.Unit.Tests.csproj +++ b/src/libraries/System.Net.Security/tests/UnitTests/System.Net.Security.Unit.Tests.csproj @@ -12,8 +12,12 @@ <NoWarn>$(NoWarn);3021</NoWarn> <TargetFrameworks>$(NetCoreAppCurrent)-Windows_NT;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)-Browser;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS</TargetFrameworks> <Nullable>annotations</Nullable> + <IgnoreForCI Condition="'$(TargetOS)' == 'Browser'">true</IgnoreForCI> </PropertyGroup> <ItemGroup> + <Compile Include="AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup Condition="'$(TargetsBrowser)' != 'true'"> <Compile Include="SslApplicationProtocolTests.cs" /> <Compile Include="SslAuthenticationOptionsTests.cs" /> <Compile Include="SslStreamAllowedProtocolsTest.cs" /> @@ -30,7 +34,7 @@ <Compile Include="$(CommonPath)System\HexConverter.cs" Link="Common\System\HexConverter.cs" /> </ItemGroup> - <ItemGroup> + <ItemGroup Condition="'$(TargetsBrowser)' != 'true'"> <!-- Production code references --> <Compile Include="..\..\src\System\Net\Security\NetEventSource.Security.cs" Link="ProductionCode\System\Net\Security\NetEventSource.Security.cs" /> |