RequireProperty(String, AvaloniaProperty, TValue) Method

Definition

Assembly HeadlessTestingFramework.dll

Requires that a named control has a specific property value.

public TreeValidator RequireProperty<TValue>(string name, AvaloniaProperty<TValue> property, TValue expectedValue)

Type parameters

TValue
The property value type.

Parameters

name
String

The control name.

property
Avalonia.AvaloniaProperty{{TValue}}

The property to check.

expectedValue
{TValue}

The expected value.

Returns

TreeValidator
This validator for chaining.