public void WhenShowIsFalse_ShouldChangeElements()
        {
            ElementPair elements = new ElementPair(true);

            Handler.SetConfirmSectionVisibility(elements.Button, elements.Section, false);

            elements.AssertDisplayState();
        }
        public void WhenSettingToTheSameState_ShouldNotChangeElements()
        {
            ElementPair elements = new ElementPair();

            Handler.SetConfirmSectionVisibility(elements.Button, elements.Section, false);

            elements.AssertDisplayState();
        }
        public void WhenOneElementIsNull_ShouldFailSilentlyAndNotChangeElement()
        {
            ElementPair elements = new ElementPair();

            Handler.SetConfirmSectionVisibility(elements.Button, null, true);
            Handler.SetConfirmSectionVisibility(null, elements.Section, true);

            elements.AssertDisplayState();
        }
 public void WhenElementsAreNull_ShouldFailSilently()
 {
     Handler.SetConfirmSectionVisibility(null, null, false);
 }