public void ServicePoint_PNS_Expect(Uri remoteServer) { HttpWebRequest request = WebRequest.CreateHttp(remoteServer); { Assert.Throws<PlatformNotSupportedException>(() => request.ServicePoint); } }