public void WhenArgumentIsNull_ShouldDoNothing(string testValue) { var model = new DemoModel(); string result = null; using ( model.CreatePropertyObservable(testValue, model => "TEST") .Subscribe(value => result = value) ) { model.RaisePropertyChanged(testValue); } Assert.Null(result); }
public void WhenArgumentIsNotEmpty_ShouldRaiseEvent(string testValue) { var model = new DemoModel(); Assert.PropertyChanged(model, testValue, () => model.RaisePropertyChanged(testValue)); }