Beispiel #1
0
        public void ButtonMouseLeave()
        {
            expandablePanel = new TestExpandablePanel(helper.Object);

            expandablePanel.TestButtonMouseLeave(button, null);

            helper.Verify(x => x.ButtonMouseLeave(button, null), Times.Once);
        }
Beispiel #2
0
        public void Extend()
        {
            expandablePanel        = new TestExpandablePanel(helper.Object);
            expandablePanel.Parent = new Panel();

            expandablePanel.Extend(500);

            helper.Verify(x => x.SetHeight(It.IsAny <Control>(), It.IsAny <int>()), Times.Exactly(2));
        }
Beispiel #3
0
        public void Setup()
        {
            eventCounter = 0;

            button                      = new Button();
            helper                      = new Mock <IHelper>();
            expandablePanel             = new TestExpandablePanel(null);
            expandablePanel.Parent      = new Panel();
            expandablePanel.OnExtended += CheckEventFiring;
            expandablePanel.OnShrunken += CheckEventFiring;
            expandablePanel.OnClear    += CheckEventFiring;
        }