Class PropertyAsserts
- Namespace
- Asserts
- Assembly
- xunit.v3.assert.dll
public class PropertyAsserts
- Inheritance
-
PropertyAsserts
- Inherited Members
Methods
PropertyChanged(INotifyPropertyChanged, string, Action)
Verifies that the provided object raised PropertyChanged as a result of executing the given test code.
public static void PropertyChanged(INotifyPropertyChanged @object, string propertyName, Action testCode)
Parameters
objectINotifyPropertyChangedThe object which should raise the notification
propertyNamestringThe property name for which the notification should be raised
testCodeActionThe test code which should cause the notification to be raised
Examples
Add an example for this method ?
Contribution guide.
Exceptions
- PropertyChangedException
Thrown when the notification is not raised
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
objectINotifyPropertyChangedThe object which should raise the notification
propertyNamestringThe property name for which the notification should be raised
testCodeFunc<Task>The test code which should cause the notification to be raised
Returns
Examples
Add an example for this method ?
Contribution guide.
Exceptions
- PropertyChangedException
Thrown when the notification is not raised