public void Test_Enter_OnAdaptedControl_ShouldRaiseEventOnAdapter()
        {
            //---------------Set up test pack-------------------
            var  dtp         = new DateTimePicker();
            var  adapter     = new WinFormsDateTimePickerAdapter(dtp);
            bool enterCalled = false;

            adapter.Enter += (sender, args) => enterCalled = true;
            //---------------Assert Precondition----------------
            Assert.AreSame(dtp, adapter.WrappedControl);
            Assert.IsFalse(enterCalled);
            //---------------Execute Test ----------------------
            dtp.Select();
            //---------------Test Result -----------------------
            Assert.IsTrue(enterCalled);
        }
        public void Test_ValueChanged_OnAdaptedControl_ShouldRaiseEventOnAdapter()
        {
            //---------------Set up test pack-------------------
            var  dtp                = new DateTimePicker();
            var  adapter            = new WinFormsDateTimePickerAdapter(dtp);
            bool valueChangedCalled = false;

            adapter.ValueChanged += (sender, args) => valueChangedCalled = true;
            //---------------Assert Precondition----------------
            Assert.AreSame(dtp, adapter.WrappedControl);
            Assert.IsFalse(valueChangedCalled);
            //---------------Execute Test ----------------------
            dtp.Value = DateTime.Today.AddDays(44);
            //---------------Test Result -----------------------
            Assert.IsTrue(valueChangedCalled);
        }