public void ShowHiddenProximateParentPopUpRecursively() { if (thisProximateParentPopUp != null) { if (thisProximateParentPopUp.IsHidden()) { thisProximateParentPopUp.Show(false); thisProximateParentPopUp.ShowHiddenProximateParentPopUpRecursively(); } } }
public void ShowHiddenProximateParentPopUpRecursively_ProxParNotNull_ProxParIsHidden_CallsItInSequence() { IPopUpConstArg arg = CreateMockArg(); TestPopUp popUp = new TestPopUp(arg); popUp.SetUpPopUpHierarchy(); IPopUp parentPopUp = popUp.GetProximateParentPopUp(); parentPopUp.IsHidden().Returns(true); popUp.ShowHiddenProximateParentPopUpRecursively(); parentPopUp.Received(1).Show(false); parentPopUp.Received(1).ShowHiddenProximateParentPopUpRecursively(); }