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