Skip to content

Commit

Permalink
Also suppress SYSLIB0014 in DataSetDataTableInWebSerializableObjectGr…
Browse files Browse the repository at this point in the history
…aphTests.cs
  • Loading branch information
carlossanlop committed Aug 21, 2024
1 parent 1274554 commit 6bc04de
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ public class MyClass
private static async Task VerifyServiceModelCSharpAsync(string source, params DiagnosticResult[] expected)
{
#pragma warning disable CA5386 // Avoid hardcoding SecurityProtocolType value
#pragma warning disable SYSLIB0014 // ServicePointManager is obsolete
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
#pragma warning restore SYSLIB0014 // ServicePointManager is obsolete
#pragma warning restore CA5386 // Avoid hardcoding SecurityProtocolType value
var csharpTest = new VerifyCS.Test
{
Expand All @@ -110,7 +112,9 @@ private static async Task VerifyServiceModelCSharpAsync(string source, params Di
private static async Task VerifyWebServicesCSharpAsync(string source, params DiagnosticResult[] expected)
{
#pragma warning disable CA5386 // Avoid hardcoding SecurityProtocolType value
#pragma warning disable SYSLIB0014 // ServicePointManager is obsolete
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
#pragma warning restore SYSLIB0014 // ServicePointManager is obsolete
#pragma warning restore CA5386 // Avoid hardcoding SecurityProtocolType value
var csharpTest = new VerifyCS.Test
{
Expand Down

0 comments on commit 6bc04de

Please sign in to comment.