예제 #1
0
 public void ErrorAddress()
 {
     Assert.ThrowsException <FormatException>(() =>
     {
         BasedSocket basedSocket = new BasedSocket(error_address, port);
     });
 }
예제 #2
0
 public void ErrorPort()
 {
     Assert.ThrowsException <ArgumentOutOfRangeException>(() =>
     {
         BasedSocket basedSocket = new BasedSocket(address, error_port);
     });
 }
예제 #3
0
 public void CreateBase()
 {
     BasedSocket basedSocket = new BasedSocket(address, port);
 }