Table of Contents

Class UISettingsAttribute

Namespace
Xunit
Assembly
Xunit.StaFact.dll
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class UISettingsAttribute : Attribute, _Attribute
Inheritance
UISettingsAttribute
Implements
Inherited Members

Properties

MaxAttempts

Gets or sets the maximum number of retry attempts for a test.

public int MaxAttempts { get; set; }

Property Value

int
  • Leave unset to inherit the value from an attribute applied to a containing type (the ultimate default being 1)
  • 1 to not retry the test on failure
  • An explicit value greater than 1 to retry the test up to a total of this many attempts on failure