Skip to content

v1.0

Compare
Choose a tag to compare
@hjerpbakk hjerpbakk released this 23 Oct 09:28
· 30 commits to master since this release
4c2990b

Fluent extension of xUnit for testing implementations of INotifyPropertyChanged in ViewModels.

Example usage:

var vm = new ViewModel();

vm.ShouldNotifyOn(vm => vm.PropertyWithNotify)
  .When(vm => vm.PropertyWithNotify = 42);

vm.ShouldNotNotifyOn(vm => vm.PropertyWithoutNotify)
  .When(vm => vm.PropertyWithoutNotify = -1);

vm.ShouldNotifyOn(vm => vm.PropertyWithNotify, vm => vm.PropertyWithMultipleNotifies)
  .When(vm => vm.PropertyWithMultipleNotifies = "42");