public void ObservableTriggersOnChange() { var value = new ActiveValue <int>(); var observedValue = value.Value; var sut = value.ObserveValue(); sut.Subscribe(i => observedValue = i); value.Value = 20; Assert.Equal(value.Value, observedValue); }
public void ObservableTriggersOnChange() { var value = new ActiveValue <int>(); var observedValue = value.Value; var sut = value.ObserveValue(); sut.Subscribe(i => observedValue = i); value.Value = 20; Assert.Equal(value.Value, observedValue); }