ForPropertyValueAsync(AvaloniaObject, AvaloniaProperty, T, String?) Method

Definition

Assembly HeadlessTestingFramework.dll

Waits for an element's property to have a specific value.

public Task ForPropertyValueAsync<T>(AvaloniaObject element, AvaloniaProperty<T> property, T expectedValue, string? message = null)

Type parameters

T
The property value type.

Parameters

element
Avalonia.AvaloniaObject

The element.

property
Avalonia.AvaloniaProperty{{T}}

The property to check.

expectedValue
{T}

The expected value.

message
String

Optional message for timeout exception.

Returns