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)); }
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); }