Table of Contents

Method PropertyChangedAsync

Namespace
Xunit
Assembly
xunit.v3.assert.dll

PropertyChangedAsync(INotifyPropertyChanged, string, Func<Task>)

Verifies that the provided object raised PropertyChanged as a result of executing the given test code.

public static Task PropertyChangedAsync(INotifyPropertyChanged @object, string propertyName, Func<Task> testCode)

Parameters

object INotifyPropertyChanged

The object which should raise the notification

propertyName string

The property name for which the notification should be raised

testCode Func<Task>

The test code which should cause the notification to be raised

Returns

Task

Exceptions

Thrown when the notification is not raised