Esempio n. 1
0
        public void TestMethod1()
        {
            TestForm frm = new TestForm
            {
                ShowInTaskbar = false //<-- this enable forms to show up for testing! otherwise it doesn't show.
            };

            frm.ShowDialog();
        }
Esempio n. 2
0
        public async Task Test_Combobox_items_display_Test()//needs to be Task and without an assert statement the async method hangs?!
        {
            IList <Type> types = await AssemblyLoaderUtil.FindAllEntityTypesThatAllowRules();

            Assert.IsNotNull(types);
            TestForm frm = new TestForm
            {
                ShowInTaskbar = false //<-- this enable forms to show up for testing! otherwise it doesn't show.
            };

            //List<TypeNameItem> ojs = new List<TypeNameItem>();
            //foreach (var type in types)
            //{
            //    ojs.Add(new TypeNameItem(type));
            //}

            frm.LoadComboboxWithItems(types);
            frm.ShowDialog();
        }