Esempio n. 1
0
        private void buttonFindAPair_Click(object sender, EventArgs e)
        {
            FormFindAPair game = new FormFindAPair();

            game.Owner = this;
            game.Show();
            Hide();
        }
        public void TestMethodOpenInfo()
        {
            LoadFont();
            ffaf = new FormFindAPair();
            PrivateObject po = new PrivateObject(ffaf);

            po.Invoke("OpenInfo", null, new object[] { null, null });
        }
        public void TestMethodFormFindAPair_FormClosed()
        {
            LoadFont();
            ffaf       = new FormFindAPair();
            ffaf.Owner = new Form();
            PrivateObject po = new PrivateObject(ffaf);

            po.Invoke("FormFindAPair_FormClosed", null, new object[] { null, null });
        }
        public void TestMethodReturnToMenu()
        {
            LoadFont();
            ffaf       = new FormFindAPair();
            ffaf.Owner = new Form();
            PrivateObject po = new PrivateObject(ffaf);

            po.Invoke("ReturnToMenu", null, new object[] { null, null });
        }
        public void TestMethodTimerTick()
        {
            LoadFont();
            ffaf = new FormFindAPair();
            PrivateObject po = new PrivateObject(ffaf);

            po.SetField("_time", 1);
            po.Invoke("TimerTick", null, new object[] { null, null });
        }