RequireMaxCount(Int32) Method

Definition

Assembly HeadlessTestingFramework.dll

Requires that no more than the specified count of a type exists.

public TreeValidator RequireMaxCount<T>(int maxCount)
    where T : class

Type parameters

T
The control type.

Parameters

maxCount
Int32

The maximum count allowed.

Returns

TreeValidator
This validator for chaining.