public void ServicePoint_NetFramework_AddressIsInaccessible() { using (var smtp = new SmtpClient("localhost", 25)) { ServicePoint sp = smtp.ServicePoint; Assert.Throws<NotSupportedException>(() => sp.Address); } }