public void ErrorAddress() { Assert.ThrowsException <FormatException>(() => { BasedSocket basedSocket = new BasedSocket(error_address, port); }); }
public void ErrorPort() { Assert.ThrowsException <ArgumentOutOfRangeException>(() => { BasedSocket basedSocket = new BasedSocket(address, error_port); }); }
public void CreateBase() { BasedSocket basedSocket = new BasedSocket(address, port); }