Inheritance: Habanero.Faces.Base.CollectionComboBoxMapper
 public void Test_RemoveCurrentHandlers_WhenMapperUsingHabaneroControl_ShouldAddBehaviours()
 {
     //---------------Set up test pack-------------------
     var comboBoxWin = new ComboBoxWin {Name = "TestComboBox", Enabled = true};
     var comboBoxMapper = new ComboBoxMapperStub(comboBoxWin);
     //---------------Assert Precondition----------------
     Assert.IsInstanceOf<IComboBox>(comboBoxMapper.Control);
     //---------------Execute Test ----------------------
     var comboBoxStrategyWin = new ComboBoxDefaultMapperStrategyWin();
     comboBoxStrategyWin.RemoveCurrentHandlers(comboBoxMapper);
     //---------------Assert Result----------------------
     Assert.IsTrue(true, "If an error was not thrown then we are OK");
 }
 public void Test_RemoveCurrentHandlers_WhenMapperUsingControlAdapter_ShouldAddBehaviours()
 {
     //---------------Set up test pack-------------------
     var comboBoxWin = GetWinFormsControlAdapter();
     var comboBoxMapper = new ComboBoxMapperStub(comboBoxWin);
     //---------------Assert ComboBoxMapperStub----------------
     Assert.IsInstanceOf<ComboBox>(comboBoxMapper.Control.GetControl());
     Assert.IsInstanceOf<ComboBox>(comboBoxMapper.GetControl());
     //---------------Execute Test ----------------------
     var comboBoxStrategyWin = new ComboBoxDefaultMapperStrategyWin();
     comboBoxStrategyWin.RemoveCurrentHandlers(comboBoxMapper);
     //---------------Assert Result----------------------
     Assert.IsTrue(true, "If an error was not thrown then we are OK");
 }
        public void Test_RemoveCurrentHandlers_WhenMapperUsingControlAdapter_ShouldAddBehaviours()
        {
            //---------------Set up test pack-------------------
            var comboBoxWin    = GetWinFormsControlAdapter();
            var comboBoxMapper = new ComboBoxMapperStub(comboBoxWin);

            //---------------Assert ComboBoxMapperStub----------------
            Assert.IsInstanceOf <ComboBox>(comboBoxMapper.Control.GetControl());
            Assert.IsInstanceOf <ComboBox>(comboBoxMapper.GetControl());
            //---------------Execute Test ----------------------
            var comboBoxStrategyWin = new ComboBoxDefaultMapperStrategyWin();

            comboBoxStrategyWin.RemoveCurrentHandlers(comboBoxMapper);
            //---------------Assert Result----------------------
            Assert.IsTrue(true, "If an error was not thrown then we are OK");
        }
        public void Test_RemoveCurrentHandlers_WhenMapperUsingHabaneroControl_ShouldAddBehaviours()
        {
            //---------------Set up test pack-------------------
            var comboBoxWin = new ComboBoxWin {
                Name = "TestComboBox", Enabled = true
            };
            var comboBoxMapper = new ComboBoxMapperStub(comboBoxWin);

            //---------------Assert Precondition----------------
            Assert.IsInstanceOf <IComboBox>(comboBoxMapper.Control);
            //---------------Execute Test ----------------------
            var comboBoxStrategyWin = new ComboBoxDefaultMapperStrategyWin();

            comboBoxStrategyWin.RemoveCurrentHandlers(comboBoxMapper);
            //---------------Assert Result----------------------
            Assert.IsTrue(true, "If an error was not thrown then we are OK");
        }