コード例 #1
0
        public void ValidateSpanIsEmpty()
        {
            var actualText = WebElement.Text;

            string messagePassed = $"The (Span) [ {ControlName} ] is Empty - PASSED.";
            string messageFailed = $"The (Span) [ {ControlName} ] contains the WRONG value: [ {actualText} ], when it should by Empty.";

            ExceptionManager.AssertIsEmpty(actualText, messagePassed, messageFailed);
        }
コード例 #2
0
        public void IsEmpty()
        {
            string text = GetValue();

            string messagePassed = $"The (Text Field) [ {ControlName} ] is Empty - CORRECT -.";
            string messageFailed = $"The (Text Field) [ {ControlName} ] contains the WRONG value: [ {text} ], when it should by Empty.";

            ExceptionManager.AssertIsEmpty(text, messagePassed, messageFailed);
        }