public void TestAdd_AddBooleanFilterComboBox_WhenDefaultNull_shouldSetNull()
        {
            //---------------Set up test pack-------------------
            IFilterControl filterControl = GetControlFactory().CreateFilterControl();

            //---------------Execute Test ----------------------
            IComboBox cb = filterControl.AddBooleanFilterComboBox("Test:", "TestColumn", null);

            //---------------Test Result -----------------------
            Assert.AreEqual(2, filterControl.FilterPanel.Controls.Count);
            Assert.AreSame(cb, filterControl.FilterPanel.Controls[1]);
            Assert.AreEqual("", cb.SelectedItem);
        }
        public void TestAdd_AddBooleanFilterComboBox_GetControl()
        {
            //---------------Set up test pack-------------------
            IFilterControl filterControl = GetControlFactory().CreateFilterControl();
            IComboBox      cbExpected    = filterControl.AddBooleanFilterComboBox("Test:", "TestColumn", false);

            filterControl.AddStringFilterTextBox("Test2:", "TestColumn2");
            //---------------Assert Precondition----------------
            Assert.IsNotNull(cbExpected);
            //---------------Execute Test ----------------------
            IComboBox cbReturned = (IComboBox)filterControl.GetChildControl("TestColumn");

            //---------------Test Result -----------------------
            Assert.AreSame(cbExpected, cbReturned);
        }