Beispiel #1
0
        public override void Setup() {
            base.Setup();

            m_usernameTextbox = new TextBoxTester("m_usernameTextbox");
	    m_connectButton = new ButtonTester("m_connectButton");
	    m_disconnectbutton = new ButtonTester("m_disconnectbutton");
	    m_sendMsgButton = new ButtonTester("m_sendMsgButton");
	    m_sendMsgAsyncButton = new ButtonTester("m_sendMsgAsyncButton");
            m_connectedLabel = new LabelTester("m_constatus");
            m_messageTextbox = new TextBoxTester("m_messageTextbox");
            m_messagesTester = new ListBoxTester("m_messages");
            m_client = new Client("localhost", 8087, 0);
            m_chatform = m_client.CreateChatForm();
            m_chatform.Show();
            m_usernameTextbox.Enter("test");
	    m_connectButton.Click();
        }
Beispiel #2
0
 public static void Main(string[] args) {
     try {           
         Client client = new Client(args);
         client.Run();
     } catch (Exception e) {
         Console.WriteLine("exception: " + e);
     }
 }