Beispiel #1
0
        public void GetAndSet()
        {
            var obj = new TestFodyObject();
            obj.StringProperty = "foo";

            Assert.AreEqual("foo", obj.StringProperty);
        }
Beispiel #2
0
 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);
 }