C# Class Channel9Downloader.Test.Utils.Assertion

This class contains additional asertion methods.
Show file Open project: MadCowDevelopment/Channel9Downloader

Public Methods

Method Description
PropertyChangedIsCalled ( INotifyPropertyChanged observableObject, string propertyName, object value ) : void

Asserts that property changed is called for the specified property when the value of the property is set to the specified value.

PropertyChangedIsNotCalled ( INotifyPropertyChanged observableObject, string propertyName, object value ) : void

Asserts that property changed is not called for the specified property when the value of the property is set to the specified value.

Private Methods

Method Description
PropertyChangedIsCalled ( INotifyPropertyChanged observableObject, string propertyName, object value, bool isRaised ) : void

Asserts that property changed is called for the specified property when the value of the property is set to the specified value.

Method Details

PropertyChangedIsCalled() public static method

Asserts that property changed is called for the specified property when the value of the property is set to the specified value.
public static PropertyChangedIsCalled ( INotifyPropertyChanged observableObject, string propertyName, object value ) : void
observableObject INotifyPropertyChanged The object that will be observed.
propertyName string The name of the property that will be observed.
value object The value to which the property should be set.
return void

PropertyChangedIsNotCalled() public static method

Asserts that property changed is not called for the specified property when the value of the property is set to the specified value.
public static PropertyChangedIsNotCalled ( INotifyPropertyChanged observableObject, string propertyName, object value ) : void
observableObject INotifyPropertyChanged The object that will be observed.
propertyName string The name of the property that will be observed.
value object The value to which the property should be set.
return void