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