public void GetAndSet() { var obj = new TestFodyObject(); obj.StringProperty = "foo"; Assert.AreEqual("foo", obj.StringProperty); }
public void ObserveProperty() { var obj = new TestFodyObject(); string s = null; obj.ObserveProperty(x => x.StringProperty).Subscribe(x => s = x); obj.StringProperty = "foo"; Assert.AreEqual("foo", s); }