From 471f9ae87e2f73b0085867cf53e7d805ddeec8c0 Mon Sep 17 00:00:00 2001 From: David Vreony Date: Sun, 14 Aug 2022 21:33:10 +0100 Subject: [PATCH] fixed issue with property test --- ...NotUseSystemNetServicePointManagerAnalyzerTest.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Dhgms.GripeWithRoslyn.UnitTests/Analyzers/DoNotUseSystemNetServicePointManagerAnalyzerTest.cs b/src/Dhgms.GripeWithRoslyn.UnitTests/Analyzers/DoNotUseSystemNetServicePointManagerAnalyzerTest.cs index 95e0bb7..453e12b 100644 --- a/src/Dhgms.GripeWithRoslyn.UnitTests/Analyzers/DoNotUseSystemNetServicePointManagerAnalyzerTest.cs +++ b/src/Dhgms.GripeWithRoslyn.UnitTests/Analyzers/DoNotUseSystemNetServicePointManagerAnalyzerTest.cs @@ -80,15 +80,19 @@ public void ReturnsWarningForPropertyAccess() var test = @" namespace System.Net { - public sealed class ServicePoint + namespace Security { + public sealed class RemoteCertificateValidationCallback + { + } } - public sealed class System.Net.Security.RemoteCertificateValidationCallback + public sealed class ServicePoint { } - public sealed class ServicePointManager + + public static class ServicePointManager { public static ServicePoint FindServicePoint() { @@ -116,7 +120,7 @@ public void MethodName() Locations = new[] { - new DiagnosticResultLocation("Test0.cs", 19, 17) + new DiagnosticResultLocation("Test0.cs", 32, 59) } };