-
-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathByTextOptions.cs
More file actions
22 lines (19 loc) · 723 Bytes
/
ByTextOptions.cs
File metadata and controls
22 lines (19 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace Bunit;
/// <summary>
/// Allows overrides of behavior for FindByText method
/// </summary>
public record class ByTextOptions
{
/// <summary>
/// The default behavior used by FindByText if no overrides are specified
/// </summary>
internal static readonly ByTextOptions Default = new();
/// <summary>
/// The StringComparison used for comparing the desired text to the element's text content. Defaults to Ordinal (case sensitive).
/// </summary>
public StringComparison ComparisonType { get; set; } = StringComparison.Ordinal;
/// <summary>
/// The CSS selector used to filter which elements are searched. Defaults to "*" (all elements).
/// </summary>
public string Selector { get; set; } = "*";
}