Esempio n. 1
0
        public void CreateChildBindable()
        {
            var a = new Bindable <int>(2, 1)
            {
                IsBindable = false
            };
            var b = a.CreateChildBindable();

            Assert.AreEqual(a.Value, b.Value);
            Assert.AreEqual(a.DefaultValue, b.DefaultValue);
            Assert.IsFalse(a.IsBoundTo(b));
            Assert.IsTrue(b.IsBoundTo(a));
            Assert.IsFalse(a.IsBindable);
            Assert.IsTrue(b.IsBindable);
        }