コード例 #1
0
        public void WhenSettingToTheSameState_ShouldNotChangeElements()
        {
            ElementPair elements = new ElementPair();

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

            elements.AssertDisplayState();
        }
コード例 #2
0
        public void WhenShowIsFalse_ShouldChangeElements()
        {
            ElementPair elements = new ElementPair(true);

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

            elements.AssertDisplayState();
        }
コード例 #3
0
        public void WhenOneElementIsNull_ShouldFailSilentlyAndNotChangeElement()
        {
            ElementPair elements = new ElementPair();

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

            elements.AssertDisplayState();
        }