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) } };