Beispiel #1
0
        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));
        }
Beispiel #2
0
 public void SetUpTest()
 {
     transport = new FakeTransport();
     server    = new Server(transport);
     client    = new FakeEndPoint("client", 0);
 }
Beispiel #3
0
 public void Bind(string address, int port)
 {
     boundAddress = new FakeEndPoint(address, port);
 }