示例#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();
        }
 public void SetUp ()
 {
     MockApplication.ResetCount();
     started = new Latch();
     new Thread(new ThreadStart(Go)).Start();
     started.Acquire();
     boxTester = new MyListBoxTester("applicationList", form);
     appStatus = new LabelTester("applicationStatus", form);
     serviceStatus = new LabelTester("serviceStatus", form);
 }