예제 #1
0
 public void ShowHiddenProximateParentPopUpRecursively()
 {
     if (thisProximateParentPopUp != null)
     {
         if (thisProximateParentPopUp.IsHidden())
         {
             thisProximateParentPopUp.Show(false);
             thisProximateParentPopUp.ShowHiddenProximateParentPopUpRecursively();
         }
     }
 }
예제 #2
0
    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();
    }