public void TestArgumentPassing() {
      Socket testSocket = new Socket(
        AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp
      );

      SocketEventArgs arguments = new SocketEventArgs(testSocket);
      Assert.AreSame(testSocket, arguments.Socket);
    }
Пример #2
0
        public void TestArgumentPassing()
        {
            Socket testSocket = new Socket(
                AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp
                );

            SocketEventArgs arguments = new SocketEventArgs(testSocket);

            Assert.AreSame(testSocket, arguments.Socket);
        }