Beispiel #1
0
        public void Copy()
        {
            var a = new Bindable <int>(2, 1)
            {
                IsBindable = false
            };
            var b = a.Copy();

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