Exemple #1
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));
        }
Exemple #2
0
        public void OnExtendedFired()
        {
            eventCounter = 0;

            expandablePanel.Extend(500);
            expandablePanel.Height = 434;

            expandablePanel.TestExtendPanel(null, null);

            Assert.AreEqual(0, eventCounter);

            expandablePanel.TestExtendPanel(null, null);

            Assert.AreEqual(1, eventCounter);
        }