public void TestAddEnumFilterComboBox()
        {
            //---------------Set up test pack-------------------
            IFilterClause  nullClause    = new DataViewNullFilterClause();
            IFilterControl filterControl = GetControlFactory().CreateFilterControl();

            //---------------Execute Test ----------------------
            filterControl.AddEnumFilterComboBox("Test:", "TestColumn", typeof(PurchaseOrderStatus));
            //---------------Test Result -----------------------
            Assert.AreEqual(nullClause.GetFilterClauseString(), filterControl.GetFilterClause().GetFilterClauseString());

            //---------------Tear Down -------------------------
        }
        public void Test_ClearEnumComboBoxFilter_ShouldClearTextInCombo()
        {
            //---------------Set up test pack-------------------
            IFilterControl filterControl = GetControlFactory().CreateFilterControl();
            IComboBox      comboBox      = filterControl.AddEnumFilterComboBox("Test", "Test", typeof(PurchaseOrderStatus));

            comboBox.SelectedItem = PurchaseOrderStatus.Processed;
            //---------------Assert preconditions---------------
            Assert.AreEqual("Processed", comboBox.Text);
            //---------------Execute Test ----------------------
            filterControl.ClearFilters();
            //---------------Test Result -----------------------
            Assert.AreEqual(0, comboBox.SelectedIndex);
            Assert.AreEqual("", comboBox.Text);
        }