public override bool Equals(object obj) { FakeEndPoint other = obj as FakeEndPoint; if (other == null) { return(false); } return((this.address == other.address) && (this.port == other.port)); }
public void SetUpTest() { transport = new FakeTransport(); server = new Server(transport); client = new FakeEndPoint("client", 0); }
public void Bind(string address, int port) { boundAddress = new FakeEndPoint(address, port); }