public void SelectedSize_SetSameValue_DoesNotFireSizeRangePropertyChangedValue() { FilesSizeLimitSettings sut = new FilesSizeLimitSettings(); sut.ShouldNotNotifyOn(s => s.SizeRange).When(s => s.SelectedSize = s.Sizes.First(x => x == s.SelectedSize)); }
public void SizeLimit_SetSameValue_DoesNotFirePropertyChangedValue() { FilesSizeLimitSettings sut = new FilesSizeLimitSettings(); sut.SizeLimit = 5; sut.ShouldNotNotifyOn(s => s.SizeLimit).When(s => s.SizeLimit = 5); }