Ejemplo n.º 1
0
        public void WhenGettingErrorMessage_ReturnsExpectedMessage()
        {
            // act
            var message = MessageBuilder.BuildErrorMessage();

            // assert
            message.Severity.Should().Be(NotificationSeverity.Error);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DW.CodedUI.WindowNotFoundException" /> class.
 /// </summary>
 /// <param name="use">The conditions how the window has been searched.</param>
 /// <param name="useTimeout">A value that indicates if a timeout was used.</param>
 /// <param name="useInterval">A value that indicates if an interval was used.</param>
 /// <param name="intervalTime">The time used in the interval.</param>
 /// <param name="timeout">The elapsed search time.</param>
 /// <param name="is">The relationship to another object.</param>
 public WindowNotFoundException(Use use, bool useTimeout, bool useInterval, uint intervalTime, TimeSpan timeout, Is @is)
     : base(MessageBuilder.BuildErrorMessage(use, useTimeout, useInterval, intervalTime, timeout, @is))
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DW.CodedUI.UIElementNotReadyException" /> class.
 /// </summary>
 /// <param name="isEnabled">A value that indicates if the element was enabled.</param>
 /// <param name="isVisible">A value that indicates if the element was visible.</param>
 /// <param name="by">The conditions how the element has been searched.</param>
 /// <param name="useTimeout">A value that indicates if a timeout was used.</param>
 /// <param name="useInterval">A value that indicates if an interval was used.</param>
 /// <param name="intervalTime">The time used in the interval.</param>
 /// <param name="timeout">The elapsed search time.</param>
 /// <param name="multiply">A value that indicates if one or multiple elements has been searched.</param>
 public UIElementNotReadyException(bool isEnabled, bool isVisible, By by, bool useTimeout, bool useInterval, uint intervalTime, TimeSpan timeout, bool multiply)
     : base(MessageBuilder.BuildErrorMessage(isEnabled, isVisible, by, useTimeout, useInterval, intervalTime, timeout, multiply))
 {
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DW.CodedUI.UIElementNotFoundException" /> class.
 /// </summary>
 /// <param name="by">The conditions how the element has been searched.</param>
 /// <param name="useTimeout">A value that indicates if a timeout was used.</param>
 /// <param name="useInterval">A value that indicates if an interval was used.</param>
 /// <param name="intervalTime">The time used in the interval.</param>
 /// <param name="timeout">The elapsed search time.</param>
 /// <param name="multiply">A value that indicates if one or multiple elements has been searched.</param>
 public UIElementNotFoundException(By by, bool useTimeout, bool useInterval, uint intervalTime, TimeSpan timeout, bool multiply)
     : base(MessageBuilder.BuildErrorMessage(by, useTimeout, useInterval, intervalTime, timeout, multiply))
 {
 }